PHP and MySQL
Tutorials covering PHP, MySQL and web application development.
Login Systems
Creating a User Database and Table Using SQL
Many PHP applications require a user table to store login information. In this tutorial, you will...
Secure Password Storage with Password Hashing
In the previous tutorial, passwords were stored as plain text in the database. In this tutorial, ...
Creating a User Registration Form
In the previous tutorial, you created a users table and learned how to securely store passwords u...
Creating a Login Form
In the previous tutorial, you created a registration form that stores users in the database. In t...
Using PHP Sessions to Keep Users Logged In
In the previous tutorial, you created a login form that verified usernames and passwords. In this...
Protecting Pages and Preventing Unauthorised Access
In the previous tutorial, you used PHP sessions to remember who was logged in. In this tutorial, ...
Creating a Logout Page
In the previous tutorial, you protected pages so that only logged-in users could access them. In ...
Adding Role-Based Access Control
In the previous tutorials, users could register, log in, access protected pages and log out. In t...
Creating a Navigation Menu Based on User Roles
In the previous tutorial, you created a role-based access control system using admin, teacher and...