I have a big problem. I am very new to php and sql and I need to create a login web page page for access to a database I have created in mySQL. I have located a script online here: http://php.about.com/od/finishedphp1/ss/php_login_code.htm
that basically explains the entire process. My problem is, I have no idea where to paste the code (eg. what .php pages I need to create and where to paste the code). So far, I have a database named 'waterfor_login' with a table named 'login' and three fields named 'id', 'username' and 'password'. I also have another database called 'waterfor_app1" that I want the user to be able to access.
I know that I will need a login.php page and a logout.php page, but I need to know:
#1. what to place in the login.php page
#2 what to place in the logout.php page
#3 what to place in the members.php page
Also, once the user is logged in, how do I display the contents of the database?
If anyone could help me out with this I would greatly appreciate it!
thank you in advance,