Car Rental Project in PHP and Mysql

Project Name Car Rental Portal
Language Used PHP5.6, PHP7.x
Database MySQL 5.x
Web Browser Mozilla, Google Chrome, IE8, OPERA
Software XAMPP / Wamp / Mamp/ Lamp (anyone)
Last Updated 30 June 2021

Car Rental Portal Developed using PHP and MySQL.  This project has three modules:

  1. Users
  2. Admin
  3. Guest

Project Demo ————————-

View Demo Installation Guide

Guest Users 
Guest user can view the website and check out the information about rental cars.
Guest users can also inquiry through contact us page.
Register Users
Anyone can register through the registration page.
After a successful registration user can log in with valid email and password. User can recover own password by providing some registered info.
After successful login user can do the following things–

  • Car Booking
  • View Car booking history
  • Update His/Her profile
  • Update his/her password
  • Post Testimonials
  • View Testimonials
  • Logout

Admin is the superuser of the website who can manage everything on the website. Admin can log in through the login page
Admin Features–

  • Admin can create vehicle brands
  • Manage Vehicle Brands(Edit, Delete)
  • Post Vehicle
  • Manage vehicle(Edit,Delete)
  • Manage Booking(Admin can confirm and Cancel Booking)
  • Manage Testimonials (Active and Inactive)
  • Manage to Contact us Query
  • Admin Can the details of registered users
  • admin can also update the page content
  • Admin can update the contact us details
  • Manage Subscribers
  • Admin Dashboard(Admin can view the count of reg users, total booking, total subscribers, total queries, etc)
  • Change Password(admin can change own password)
  • logout

How to run Project
1. Download and Unzip the file on your local system copy carrental.
2. Put carrental folder inside the root directory
Database Configuration
Open PHPMyAdmin
Create Database carrental
Import database carrental.sql (available inside the zip package)
For User
Open Your browser put inside browser “http://localhost/carrental”
Login Details for user:
Password: Test@123
For Admin Panel
Open Your browser put inside browser “http://localhost/carrental/admin”
Login Details for admin :
Username: admin
Password: Test@12345

Download full source code(Car Rental Project in PHP and Mysql)
Size: 16.0 MB
Version: V 2.3

Project Report

Purchase Car Rental Project Report in Rs 249 / $3.8
Leave A Reply

Your email address will not be published.

  1. Hafeel says

    Hii Sir, I want to remove $ symbol and Add Rupee symbol… I did it in the index form but not able to do it in Vehicle details and car listing… How to change Please help!!!

    1. Anuj Kumar says

      The currency symbol is a static symbol in every page. You can find the $ sign replace with your currency sign.

  2. Ali Mehboob says

    Hi Sir I Really Like This Project But When I Run It The Website Is Not Showing Up Only The Header Part With Just Logo Showing the Problem is In Index.php if You Can Please Give Me The Solution I Will Be Grateful

    1. Anuj Kumar says

      Have you import the database?

  3. Pathan umar says

    sir can Iuse this project as a final year project for deploma

    1. Anuj Kumar says

      Yes, you can use.

      1. Pathan Umar says

        Thank you sir for your appriciation this project is very helpful for my final year
        Once again thank you so much .

  4. Hari says

    hii, this project is really great!!

  5. Vaibhav k says

    http://localhost/carrental is not displaying full site except the header! how can i rectify this?

    1. Anuj Kumar says

      This issue is fixed now.

  6. akash says

    Error: SQLSTATE[HY000] [1049] Unknown database ‘carrental’. Sir i am getting this error please help me.

    1. Anuj Kumar says

      Looks like a database connection error. Check your database connection file.

  7. PawelS says

    HI Anuj!

    In my ZIPfile one php script is missing: manage-bookings.php

    Cen You send me this missing part?


    1. Anuj Kumar says

      I am checking the issue

  8. Kiru says

    @Anuj kumar sir i just need to remove that colour switcher to customize my college project , that setting icon which changes the color of font or text,so can u guide to remove that feature??????

    1. Anuj Kumar says

      Comment the code inside theinludes/colorswitcher.php

      1. Kiran says

        Thanks for you information sir, i got my answer

      2. Kiru says

        Booking number is not generating?
        Any queries for this

  9. Parth Ranalkar says

    Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
    This error is occoured

    1. Anuj Kumar says

      Looks like a database connection issue. Check your database connection.

      1. Kiru says

        @anuj kumar sir how to change that usd into inr in every page of the web site, it will be very very helpfull for my college project please respond to this!!!!!!!!!

        1. Anuj Kumar says

          You can change directly in the PHP code. It is a hardcoded value.

          1. Kiru says

            In admin dashboard total booking is not working, its showing object not found!

  10. Musa says

    @Anuj Kumar awesome project indeed, but please help, New password and confirm password field do not match…not sure what’s the problem on the user registration part. Please help.

    1. Anuj Kumar says

      Share your error

      1. Musa says

        Alright thanks, will share on this email address

  11. Yash says

    How many modules are there in this car rental project?

    1. Anuj Kumar says

      Two modules

  12. Hassan Khan says

    hello sir
    the booking number is not generating how to fix it
    plwase help me sir

    1. Anuj Kumar says

      Share your error at

  13. Pamma says

    excellent Job

  14. Sandeep says

    Sir can i use it for personal use .
    Actually i have two car and provide rent service.

    1. Anuj Kumar says

      Yes, You can.

      1. sandip says

        Thank you sir….

  15. Ankit says

    Respected SIr,
    Sir search option is not working it only works for certain car.

  16. mario says

    Thanks man you’re the boss , great stuff

  17. Meenakchi says

    sir i need optical shop management system project in PHP platform..can you please help me sir?

    1. Anuj Kumar says

      Not available.

  18. shoaib says

    sir i want this book but my payment method is bitcoin /

  19. rashmi says

    Is stored procedure included in this project(back end)?

  20. Pavan shetty says

    @anuj kumar
    Sir can you plz tell me a password of admin login.
    I was already use password Test@12345 it shows invalid password

  21. zain says

    how to get search option to work? any code?

    1. Anuj Kumar says

      I will fix this soon.

  22. Pavan shetty says

    It shows invalid password

  23. Pavan shetty says

    Sir can you plz tell me a password of admin login.
    I was already use password Test@12345 it shows invalid password

    1. Anuj Kumar says

      Open Your browser put inside browser “http://localhost/carrental/admin”
      Login Details for admin :
      Username: admin
      Password: Test@12345

  24. Teghdeep Kapoor says

    How Can i change the banner image ???

    1. Anuj Kumar says

      You will find the banner image in css.

  25. sachin says

    This Project can be Ran in windows 10?

    1. Anuj Kumar says


  26. Neetu says

    can we write this project in html language

    1. Anuj Kumar says


  27. buddy bhai says

    we made changes in admin panel and updated it, but as soon we close the project and import SQL file again, it was back to original and no changes that we made earlier were visible, please help me in this

    1. Anuj Kumar says

      clear you cache then try.

  28. sky says

    sir, how can i change the about us and car discription in the project?
    i have tried to change in the sql file. but it didnot affect the discription of the project. help me out please/???

    1. Anuj Kumar says

      after login into the admin panel, you can change these details.

      1. sky says

        sir i have tried to change it, it changes ..i have used xampp , but the change is temporary , whenever i opened it again in xampp , it shows the same previous details and description. please help , i need your guidance..

    2. buddy says

      you can do it:-))

  29. Ankit says

    while adding to phpmyadmin getting an error
    SQL query:
    — ——————————————————–

    — Table structure for table `tblbrands`

    CREATE TABLE IF NOT EXISTS `tblbrands` (
    `id` int(11) NOT NULL,
    `BrandName` varchar(120) NOT NULL,
    `CreationDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
    MySQL said: Documentation
    #1293 – Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
    Any Solution Sir..?

    1. Anuj Kumar says

      Update your MySQL Version

  30. Dinesh says

    Sir can you plz tell me a password of admin login.
    I was already use password Test12345 it shows invalid password

    1. Anuj Kumar says

      Password is Test@12345

  31. Ismail says

    Can you please send me entity relationship diagram of this project please

  32. Ismail says

    Hello i’m facing problem in registration form. password and confirm password validation is not working it doesn’t give error when password and confirm password is not the same.
    please help me

    1. Anuj Kumar says

      You have to enter same enter password in both fileds

      1. Ismail says

        I did but it also accepts if i enter different passwords in both fields. Confirm password is not working. Please help

      2. Ismail says

        It does not give error when both fields are different. This is the problem

  33. anne says

    Super nice thanks for the source code. I need to edit this project, is it possible to online this project? I mean without any conflict?
    – i am from philippines and I don’t know if its possible or I need to debug this.

    1. Anuj Kumar says


  34. anne says

    Error: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘root’@’2a02:4780:bad:f00d::16’ (using password: NO)
    error when I tried to online this project through 000webhost.

    1. Anuj Kumar says

      Check your db connection

  35. Roshan karki says

    there is error in importing database which have been said that there will be only one time stamp check it once

    1. Anuj Kumar says

      Update you xampp or wamp. use the latest version

  36. jayesh dongre says

    the project is not runing on xampp showing this erorr
    “Error: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.”
    plz help

    1. Anuj Kumar says

      Looks like db connection connection error
      Create Database carrental
      Import database carrental.sql (available inside zip package)

  37. mehdi says

    great work !! do you have the report for this project ??

    1. Anuj Kumar says
  38. Yolan Sihombing says

    Sir,? Why I haven’t been able to do as it was on your video demo, login and sign up can’t sir..???

    1. Anuj Kumar says

      Follow the instructions properly.

  39. AnandaGB says

    Awesome you are…! I am novice to this technology. I was searching a small web project. Thank you so much !

  40. Pedro says

    Hi my friend. your project is really great!
    How i can to change the number of columns of listing in the index.php page?
    I want change the columns from 3 to 5.

    1. Anuj Kumar says

      Make the chnages in bootstrap column

      1. Pedro says

        Could you tell me which line?
        thank you very much

  41. Pedro OSINAGA says

    Hi, the project is really great!!
    How can i do to change the number of columns from 3 columns to 4 or 5 in the listing of the index.pxp.

  42. jonas says

    sir how i can change the background image of this project, i was exploring it but icant change the pictures including the car list. thankyou so much well appreciated. btw nice project!

    1. Anuj Kumar says

      Make the change in the css file.
      Location of background image assests/css/style.css line no 1066

  43. Priya verma says

    When a customer booked a car then how could he get the message either his booking is confirmed or not.

    1. Anuj Kumar says

      For this feature integrate mail function

      1. Priya verma says

        Please send me the steps that how to integrate mail function

        1. Anuj Kumar says

          for mail function visit this tutorial:

  44. Priya verma says can we categorised the vehicles according to area.

    1. Anuj Kumar says

      You have to create categories and divided vehicle according to categories

  45. Priya verma says

    I want to add a time and area section, where the car will arrive when we go for the booking time

    1. Priya verma says

      Please provide me an step how to make changes in it

    2. Anuj Kumar says

      This feature not available. I try to add this feature soon.

      1. Priya verma says

        Plz add this immediately its so necessary for me because its my major project also try to understand sir

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy