I am going to show you how you can protect web pages of your website and allow access only to registered users. Before we proceed, please read my earlier posts on how to add users into the table using web form and how to create login page for you users access those protected web pages. […]
In my previous post, I demonstrated on how you can build a login page in PHP and MySQL. The assumption was that there are already records in the “user” table with necessary information. Now, I am going to show how you can build a registration screen for you to add user record into the database.
This post will try to demonstrate how to do a login page using PHP with MySQL database. We are going to start with the table itself. We are assuming that you have created a database in your MySQL named “mytable”, with username “mytableuser” and password “mytablepassword”.