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! 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. Any and all help appreciated. Thanks.
I've used this exact script several times, and it has worked really well for me. It's written for php4, but should work with php5 without modification. http://www.evolt.org/article/PHP_Login_System_with_Admin_Features/17/60384/index.html
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.