What is the best way to make an index.php page and people register with a username and password (and a user ID which auto increments from 1 upwards) and then they can log-in and see the index.php page contents. On index.php it says "please register or log-in" when the user is not logged in. Then it will show the content when the user is logged in, such as "Welcome to X site". I am very new to PHP so please keep it simple...
It doesn't explain how to let a user register. Maybe this tutorial is for doing that? http://www.phpeasystep.com/mysql/5.html
oeps sorry the following tutorial has both http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/