Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Registration and Login System with PHP and MySQL πŸ”

This project is a simple and functional registration and login system, implemented using PHP and MySQL. It allows users to create an account, log in with their credentials, and access a secure area. πŸ”’

🌟 Features 🌟

  • πŸ“ User Registration: Allows new users to create an account with a username and password.
  • πŸ”‘ User Login: Validates credentials and grants access to the secure area.
  • πŸ” Password Hashing: Ensures security by storing passwords as hashed values.
  • πŸ“… Session Management: Maintains user sessions to track login status.
  • πŸšͺ Logout: Allows users to securely log out.

βš™οΈ Prerequisites βš™οΈ

Before running this project, ensure you have the following installed:

  • PHP (>=7.4) πŸ–₯️
  • MySQL πŸ—„οΈ
  • A web server (e.g., Apache or Nginx) 🌐
  • A database client (e.g., phpMyAdmin, MySQL Workbench, or command-line client) πŸ”§

πŸ› οΈ Setup Instructions πŸ› οΈ

  1. Clone the Repository:

    git clone https://github.com/yourusername/your-repo-name.git
    cd your-repo-name
  2. Set Up the Database:

    • Open your MySQL client.

    • Create a new database:

      CREATE DATABASE user_system;
    • Import the provided database.sql file:

      mysql -u username -p user_system < database.sql
  3. Configure the Project:

    • Open the config.php file.

    • Update the database connection details:

      define('DB_HOST', 'localhost');
      define('DB_USER', 'your_database_username');
      define('DB_PASS', 'your_database_password');
      define('DB_NAME', 'user_system');
  4. Run the Project:

    • Place the project files in your web server's root directory (e.g., htdocs for XAMPP).
    • Start your web server and navigate to http://localhost/your-repo-name.

πŸ“ Folder Structure πŸ“

/your-repo-name
β”œβ”€β”€ config.php          # Database configuration
β”œβ”€β”€ register.php        # Registration script
β”œβ”€β”€ login.php           # Login script
β”œβ”€β”€ logout.php          # Logout script
β”œβ”€β”€ secure_page.php     # Secure area
β”œβ”€β”€ database.sql        # Database schema
└── README.md           # Project documentation

πŸ“Έ Screenshots πŸ“Έ

πŸ“ Registration Page

Registration Page

πŸ”‘ Login Page

Login Page

πŸ” Secure Page

Secure Page

πŸ“œ License πŸ“œ

This project is licensed under the MIT License. Feel free to use and modify it as per your needs. πŸ› οΈ

🀝 Contributions 🀝

Contributions are welcome! Feel free to submit issues or pull requests for improvements or bug fixes. πŸ’‘

πŸ“¬ Contact πŸ“¬

For any questions or feedback, please contact:


About

This project is a simple and functional registration and login system, implemented using PHP and MySQL. It allows users to create an account, log in with their credentials, and access a secure area. πŸ”’

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages