PHP/MySQl Creating Username/Password system

Discussion in 'PHP' started by Bauer14, Aug 10, 2008.

  1. #1
    I am attempting to create an "employees only" portion to the new website that I made. Here employees will be able to login with their username and password and access sensitive material. I understand I need to create a database using MySQL which will store usernames and passwords. Then I think I am supposed to use PHP to control logging in. Can anyone illuminate what I am exactly supposed to? I couldn't find any tutorials on the internet. Thank you very much!
     
    Bauer14, Aug 10, 2008 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Google for 'PHP-MySQL login system'
    There are hundreds of free login system scripts available there!
     
    rohan_shenoy, Aug 10, 2008 IP
  3. bobbydeo

    bobbydeo Peon

    Messages:
    65
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can try hotscripts.com for some free scripts.
     
    bobbydeo, Aug 10, 2008 IP
  4. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or, if you desperately want to make your own, the idea is that you hash (md5() or sha1()) their password and see if it matches the hashed pass on the database for the given username. Put that all in an if() statement and you have yourself a user authentication system :D
     
    Rory M, Aug 10, 2008 IP