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!
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