Mobile number can not be blank. Either email or password is incorrect. There are few steps given for creating a login system with MySQL database. The path should look like this: C:\mysql-init.txt. Delete emergency.php from your server when you are done. After the account was created, the user can log in to their own account. There are no errors, however the admin value doesn't seem to make a difference and by default opens 'users.php' everytime. * Login without using the database. In this tutorial we'll create a simple registration and login system using the PHP and MySQL. I'm a newbie in php and I want to create a single login page for Admin and user.When admin log in it should go to an admin page and when user log it shoult go to index page.I want help with my code, it works fine login normal users but i try it addind the admin part and it doesn't seem to work .Please help and Thanks in advance .. Download the zip file. You can create columns manually or even you can execute the below sql script from SQL tab to create columns with following values. If you are looking for on how to create Admin Account in PHP/MySQL then you are at the right place. You create an account before log into these applications this way you can use their features. Password not provided. Why do exploration spacecraft like Voyager 1 and 2 go through the asteroid belt, and not over or below it? For validating email value, we used the filter_var() method. User email successfully verified! Validate if the email provided by the user already exists in the database using the SQL script via mysqli_query() method. Is there a word for making a shoddy version of something just to get it working?