Skip to content

Latest commit

Β 

History

History
63 lines (42 loc) Β· 1.42 KB

File metadata and controls

63 lines (42 loc) Β· 1.42 KB

πŸ” PHP Login & Registration System

A simple, secure, and functional PHP login & registration system with MySQL database.
Perfect for learning user authentication or integrating into small projects.


πŸš€ Features

  • User registration with unique usernames
  • Secure password hashing (BCRYPT)
  • Login authentication
  • Protected dashboard page
  • Logout functionality
  • Easy setup and integration

πŸ›  Installation

  1. Clone or download this repository.
  2. Import sql.sql into your MySQL database.
  3. Update database credentials in config.php.
  4. Run on a local server (XAMPP/WAMP) or live server.
  5. Open register.php to create a new account.
  6. Login via login.php to access dashboard.php.

🧾 Database Structure

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
);

🌟 About Me

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.


πŸ“Œ License

This project is free to use and modify.


β€œCode is like humor. When you have to explain it, it’s bad.” – Cory House