PHP – add user function

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.

PHP Login

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”.