A simple PHP + MySQL CRUD application for managing car details in a showroom.
This project demonstrates how to perform Create, Read, Update, and Delete operations with a user-friendly interface styled using CSS.
- 📋 View a list of all cars in a neat table.
- ➕ Add new cars with brand, model, year, and price.
- ✏️ Edit car details directly from the table.
- ❌ Delete cars from the database with confirmation alert.
- 🎨 Clean UI with custom styling (responsive and user-friendly).
- Backend: PHP (MySQLi)
- Database: MySQL
- Frontend: HTML, CSS
Car-showroom
│
│── index.php # Show all cars (Read)
│── add.php # Add new car (Create)
│── edit.php # Update car details (Update)
│── delete.php # Delete car (Delete)
│── db.php # Database connection
│── style.css # Styling
│── car_showroom.sql # Database script- Open
phpMyAdminor MySQL CLI. - Run the commands that are included in car_showroom.sql
-
Clone the repository
git clone https://github.com/nabil0203/Car_Showroom.git
-
Move the project to your server directory (e.g.,
htdocs in XAMPP)mv car-showroom /xampp/htdocs/
-
Start Apache and MySQL from XAMPP.
-
Import the
car_showroom.sqlfile into your database. -
Run the Project
- Visit:
http://localhost/Car_Showroom_Management/
- Open the Home Page to view all cars.
- Click + Add New Car to insert a new car into the database.
- Use Edit to update car details.
- Use Delete to remove a car (confirmation alert will appear).
- ➜] Add user authentication (login/logout system)
- 🔍 Add search & filter functionality.
- 🖼️ Add image upload for cars.
- 🔑 Add authentication (Admin login).
- 📱 Make UI fully responsive.
- Contributions, issues, and feature requests are welcome!
- Feel free to fork this repo and submit pull requests.
This project is open-source and available under the MIT License