Skip to main content

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"
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.

Add new comment