Users, Log-Ins, Sessions, Permissions, Etc in PHP

Discussion in 'PHP' started by EGS, Apr 16, 2007.

  1. #1
    Hello!

    I'd like to set up a user system with PHP for a back-end on my website, but I don't know how to do it! :eek:

    Can anyone assist me, or give me some links to good, clear (understandable) tutorials on how to set up users (with unique usernames and passwords) in PHP, and possibly in connection with a MySQL database?

    I'd like to do the following:
    • Set up an administrator username that can add, edit, and delete usernames and user information, as long with setting user permissions (regular user, administrator, etc).
    • Usernames when logged in will see coding of the page, I guess this would be PHP. If user log-in is incorrect, they will not see the page and will not have access to the back-end. I know this can probably be done just with PHP and some strings...but if users can be set up in a database, it would make administering them a lot easier. :D

    Any and all help appreciated.
    Thanks. :D
     
    EGS, Apr 16, 2007 IP
    Subikar likes this.
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    jestep, Apr 16, 2007 IP
    EGS and Subikar like this.
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    What coding JSTEP is giving it is actually very fine EGS use that code. If you are not understanding then I can provide you the code. I think the present code is simple and easy step to implement. :)
     
    Subikar, Apr 16, 2007 IP
    EGS likes this.