A full-stack Car Rental web application built using HTML, CSS, JavaScript (Frontend) and PHP with MySQL (Backend). This system allows users to book cars and admins to manage car rentals efficiently.
- View available cars with details (image, model, price, etc.)
- Book a car by filling a rental form
- View booking confirmation and details
- Add, update, and delete car listings
- View and manage all bookings
- Manage users and reports
Layer | Technology |
---|---|
Frontend | HTML, CSS, JavaScript |
Backend | PHP |
Database | MySQL |
- Users Table – Stores user info (name, email, etc.)
- Cars Table – Stores car details (brand, model, rent, etc.)
- Bookings Table – Stores booking info (user_id, car_id, dates)
-
Clone the repository:
git clone https://github.com/SAKSHIJAIN123-MCA/carrental.git
-
Move the project to your web server root:
- For XAMPP: Place inside
htdocs/
- For WAMP: Place inside
www/
- For XAMPP: Place inside
-
Start Apache and MySQL using XAMPP/WAMP.
-
Import the database:
- Open
phpMyAdmin
- Create a new database (e.g.,
carrental
) - Import the provided
.sql
file into the database
- Open
-
Update database config in the project:
$conn = new mysqli("localhost:3307", "root", "", "carrental");
-
Open the project in browser: http://localhost/carrental/
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
For any questions or suggestions, please contact sakshijainmorena@gmail.com.