A PHP and mySQL object oriented-based web application for managing and displaying cars for sale, with car inventory and admin management features.
This website was built alongside the PHP: Object-Oriented Programming with Databases course on LinkedIn Learning, but it is not an exact reproduction. The original course project centered on a bicycle shop with a limited UI/UX and no image functionality. For this project, the concept was adapted and extended into a dealership context, with enhanced UI/UX design and additional features such as vehicle images and inventory search filters.
- Public-facing car listings with details and images
- Admin/staff dashboard for managing cars and users
- User authentication (login/logout)
- Pagination for car listings
- File upload for car images (with unique file naming)
- Responsive navigation and modern UI
- PHP 7.4+
- MySQL/MariaDB
- Web server (Apache recommended, XAMPP compatible)
- Clone or download this repository.
- Import
car_dealership.sqlinto your MySQL database. - Configure your database credentials in
private/database_credentials.php. - Place the project in your web server's root directory (e.g.,
htdocsfor XAMPP). - Access the site via your browser (e.g.,
http://localhost/Car-Dealership-Website/public/).
You can use the following example admin account to log in:
Username: JohnDoe123 Password: MySecure!Pass123
- Public users can browse cars, view details, and contact the dealership.
- Staff/admin users can log in to manage car listings and user accounts.
- Add or modify car makes, models, and options in the
Carclass. - Update styles in
public/stylesheets/. - Add JavaScript functionality in
public/js/.
- The
private/directory is not web-accessible for security. - Uploaded files are renamed with unique IDs to prevent conflicts.
- Always validate and sanitize user input.
This project was completed by following along with the LinkedIn Learning courses:
The code and structure closely reflect the instructional content provided in these courses, and the project was developed as part of a personal learning exercise.
