Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌸 Dreamy User Management System ✨

A simple and elegant user management system built using HTML, CSS, JavaScript, PHP, and MySQL. The project allows users to add personal information, store it in a MySQL database, display registered users in a table, and update user status using a toggle button without refreshing the page.


لقطة شاشة 2026-07-27 070147 لقطة شاشة 2026-07-27 071244 image

✨ Project Features

  • Add users through a simple form.
  • Store user information in a MySQL database.
  • Display all registered users in a table (ID, Name, Age, Gender, Status, Action).
  • Toggle user status between Active and Inactive (0 ⇄ 1) — no page reload.
  • Update status instantly using AJAX.
  • Responsive UI design with soft colors and decorative elements.

🛠️ Technologies Used

  • HTML
  • CSS
  • JavaScript
  • PHP
  • MySQL
  • InfinityFree Hosting

📁 Project Structure

dreamy-users/
├── index.php          # Main page (form + table)
├── db.php              # Database connection settings
├── add_user.php        # Handles form submission (INSERT)
├── fetch_users.php     # Returns all users as JSON (for AJAX refresh)
├── toggle_status.php   # Flips a user's status (0/1) via AJAX
├── style.css           # All styling (pastel/feminine theme)
├── script.js            # Client-side AJAX logic
├── database.sql         # SQL to create the `users` table
└── README.md             # This file

🗄️ Database Structure

Table name: users

Column Type Notes
id INT AUTO_INCREMENT, PRIMARY KEY
name VARCHAR(50)
age INT
gender VARCHAR(10) "Male" or "Female"
status INT Default 0; toggled to 1

The full SQL is in database.sql.


Made with 💗 and a little bit of sparkle ✨

About

A simple user management system built with PHP and MySQL. It allows users to add, display, and update user status with a responsive UI design.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages