A web application for buying and selling used cars, built with PHP and MySQL.
UsedCars is a platform that allows users to:
- Browse car listings with detailed search functionality
- Create and manage car sale advertisements
- Save searches for later reference
- Register and manage user profiles
- Admin approval system for listings
- Filter cars by multiple criteria:
- Make and model
- Year range
- Mileage range
- Price range
- Fuel type
- Transmission type
- Drive type
- Engine displacement
- Power output
- User registration and authentication
- Profile management
- Different permission levels (Admin/User)
- Saved searches functionality
- Create detailed car listings with multiple images
- Admin approval system for new listings
- Comprehensive car details including:
- Technical specifications
- Price
- Description
- Contact information
- Multiple photo upload
- PHP 7+ with strict typing
- MySQL database
- PDO for database operations
- Custom MVC-like architecture
- Responsive design
- Mobile-first approach
- Custom CSS
- JavaScript for interactive features
- Password hashing
- CSRF protection
- Input sanitization
- Prepared SQL statements
- Session management
├── classes/ # Core PHP classes
├── core/ # Core initialization
├── css/ # Stylesheets
├── functions/ # Helper functions
├── images/ # Static images
├── js/ # JavaScript files
├── slike_oglasa/ # User uploaded images
└── baza/ # Database scriptsThe application uses a MySQL database with tables for:
- Users (korisnik)
- Advertisements (oglasi)
- Images (slika)
- Saved searches (pretrage)
- Admin accounts (admin)
- Clone the repository
- Import the database schema from
baza/skripta.sql - Configure database connection in
core/init.php - Ensure the
slike_oglasadirectory is writable - Configure your web server to serve the application
- PHP 7.0 or higher
- MySQL 5.7 or higher
- Web server (Apache/Nginx)
© 2023 UsedCars.com, All rights reserved.