Skip to content

nabil0203/AutoVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Car Showroom – PHP CRUD Application

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.


📌 Features

  • 📋 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).

🛠️ Tech Stack

  • Backend: PHP (MySQLi)
  • Database: MySQL
  • Frontend: HTML, CSS

📂 Project Structure

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

💾 Database Setup

  1. Open phpMyAdmin or MySQL CLI.
  2. Run the commands that are included in car_showroom.sql

🚀 How to Run the Project

  1. Clone the repository

    git clone https://github.com/nabil0203/Car_Showroom.git
  2. Move the project to your server directory (e.g., htdocs in XAMPP)

    mv car-showroom /xampp/htdocs/
  3. Start Apache and MySQL from XAMPP.

  4. Import the car_showroom.sql file into your database.

  5. Run the Project

    • Visit:
    http://localhost/Car_Showroom_Management/

🎮 Usage

  • 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).

🚀 Future Improvements

  • ➜] Add user authentication (login/logout system)
  • 🔍 Add search & filter functionality.
  • 🖼️ Add image upload for cars.
  • 🔑 Add authentication (Admin login).
  • 📱 Make UI fully responsive.

🤝 Contributing

  • Contributions, issues, and feature requests are welcome!
  • Feel free to fork this repo and submit pull requests.

📜 License

This project is open-source and available under the MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors