Online Car Rental System Using PHP/MySQL with Source Code


The Online Car Rental System with Source Code is a PHP project that allows you to transact online booking for car rentals. The system is using PHP and MySQL.The system is very straight forward. After you log in as admin, you can create a brand and add vehicles used for booking online. The system also has testimonials and a contact us page so the customer can give their feedback and contact the site owner. The customer can register on the website and select which vehicle they’d like to rent. The project's website has a pleasant user interface and it's user-friendly.



  • Dashboard (list summaries)
  • Manage Vehicles Brands
  • Manage Vehicles
  • Manage Bookings
  • Manage Users' Testimonials
  • Manage Contact Us Messages
  • Manage Website Pages Content
  • Manage Website Contact Info
  • Manage Subscribers
  • Manage Account's Password


  • View/Read Pages Content
  • View Cars for Rent
  • Book Vehicle
  • Send Message
  • Manage Bookings
  • Manage Testimonials
  • Manage Account's Details and Credentials

This project source code is free to download. Feel Free to download and modify in the way you wanted. Follow the instructions below to run the Online Car Rental System.


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the source code zip file and Rename the source code folder into "car-rental".
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the xampp's "htdocs" directory. If you are using WAMP, paste it inside the "www" directory.
  4. Open a web browser and browse the PHPMyAdmin. (http://localhost/phpmyadmin)
  5. Create a new database naming "carrental".
  6. Import the provided SQL file into your newly created database. The SQL file is known as "carrental.sql" and it is located inside the "db file" directory of the source code folder.
  7. Browse the web application in a browser. i.e.(http://localhost/car-rental/) for the users' side and (http://localhost/car-rental/admin) for the admin side


Username: admin
Password: admin



I hope this Online Car Rental System Project in PHP will help you with what you are looking for. Explore more in this site for more Tutorials and Free Source Code.

Enjoy Coding:)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byCatie Marley (not verified)on Mon, 02/22/2021 - 22:21

Please I need some help with creating the new database, when I try to I get this error " #1044- Access denied for user "@'localhost' to database 'carrental"

This is the error that required database hasn't founded so do as per the solution above. Create Database name carrental in phpmyadmin. Then import the file of carrental database in db folder of downloaded project in that carrental database in phpmyadmin. Boom it will start working
Submitted byaimen azim (not verified)on Sat, 06/12/2021 - 07:22

sir, I want t change the images used in this project but nothing is working plz help.
Submitted byAnonymous (not verified)on Mon, 02/21/2022 - 17:10

excellent project
Submitted byAnonymous (not verified)on Mon, 02/21/2022 - 17:12

i nee d this project
Submitted byAbedi (not verified)on Sat, 05/21/2022 - 16:45

When am trying to register gave message "New password and confirm password field do not match "
Submitted byMarvinnyom (not verified)on Fri, 05/05/2023 - 04:22

good job. how do i change code so that the system automatically checks for booking time conflict. and deny a booking incase there is a time conflict
Submitted byibrasow5 (not verified)on Sat, 06/03/2023 - 06:01

Hello, car listing page isn't working for me
Submitted byMassimo (not verified)on Sun, 11/26/2023 - 00:54

Hi everyone, is it possible to bypass the booking confirmation and send a message saying that the car is already booked? Which lines of code should I modify? thank you very much. P.S :Congratulations to the developer, the application is excellent and worked perfectly from the start.

Add new comment