Car Rental Management System
1. Introduction
The Car Rental Management System is a PHP and MySQL-based web application designed to
automate the process of booking and managing rental vehicles. The system provides a user-
friendly interface for both administrators and customers to handle car reservations,
payments, and fleet management efficiently.
2. Objectives
- Automate the car rental booking process
- Provide a responsive web interface for admins and customers
- Secure and efficient database for managing users and bookings
- Generate reports and statistics on rentals
3. System Requirements
Hardware Requirements
- Processor: Intel i3 or higher
- RAM: 4 GB
- Hard Disk: 100 GB
Software Requirements
- Operating System: Windows/Linux
- Web Server: Apache
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
4. Modules
Admin Module
- Admin login/logout
- Manage car records
- Manage bookings
- Generate reports
User Module
- User registration/login
- Search and book cars
- View booking history
- Payment options
5. System Design
The system uses a relational database with the following tables:
Database Tables
Car(car_id, model, brand, rate_per_day, status)
Customer(customer_id, name, email, phone, license_number)
Booking(booking_id, customer_id, car_id, start_date, end_date, total_amount, status)
Payment(payment_id, booking_id, amount, payment_date, method)
Admin(admin_id, username, password)
6. Implementation
The system is implemented using PHP for server-side scripting and MySQL for data
management. HTML, CSS, and JavaScript are used for frontend development. Below is a
sample code snippet for login:
<?php
$conn = new mysqli('localhost', 'root', '', 'car_rental');
$username = $_POST['username'];
$password = md5($_POST['password']);
$query = "SELECT * FROM admin WHERE username='$username'
AND password='$password'";
$result = $conn->query($query);
if ($result->num_rows > 0) {
echo 'Login successful';
} else {
echo 'Invalid credentials';
}
?>
7. Testing
Testing was performed on all modules:
- Unit Testing for individual components
- Integration Testing for combined functionality
- User Acceptance Testing (UAT) to ensure usability
8. Results
The system functions correctly with user and admin roles, booking logic, and payment
summary.
9. Conclusion
The Car Rental Management System automates the booking and fleet management process
effectively. It reduces manual effort, increases accuracy, and enhances customer experience.
10. Future Enhancements
- Mobile app integration
- GPS tracking for rented vehicles
- Dynamic pricing system