A simple, secure, and functional PHP login & registration system with MySQL database.
Perfect for learning user authentication or integrating into small projects.
- User registration with unique usernames
- Secure password hashing (BCRYPT)
- Login authentication
- Protected dashboard page
- Logout functionality
- Easy setup and integration
- Clone or download this repository.
- Import
sql.sql
into your MySQL database. - Update database credentials in
config.php
. - Run on a local server (XAMPP/WAMP) or live server.
- Open
register.php
to create a new account. - Login via
login.php
to accessdashboard.php
.
CREATE DATABASE php_auth;
USE php_auth;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);
Hi, Iβm Naveed, a passionate web developer.
I love creating functional, clean, and secure web applications.
π» Check out my GitHub profile for more projects:
https://github.com/DigitalEforce
π« Contact me anytime for collaboration or suggestions.
This project is free to use and modify.
βCode is like humor. When you have to explain it, itβs bad.β β Cory House