🖨️ Ink Cartridge Search
PHP-based search engine for printer ink cartridges
⚠️ PHP & MySQL Required: This application requires PHP and MySQL to run. It cannot run directly in this cloud environment. Please follow the instructions below to run it on your local machine using XAMPP (easiest method).
✨ Features
- Search by cartridge model or printer model
- Filter by brand (HP, Canon, Epson, Brother)
- Filter by ink color and price range
- View detailed cartridge information
- Responsive design for all devices
- MySQL database with optimized indexes
- Includes 21 sample cartridges
🚀 Quick Start Guide
1
Download this project folder to your computer
2
Install PHP if you don't have it:
3
Open terminal/command prompt in the project folder
4
Start the PHP server:
php -S localhost:8000
5
Initialize the database:
Open your browser and visit: http://localhost:8000/setup_database.php
6
Start using the application:
Visit: http://localhost:8000
✅ That's it! You should now see the ink cartridge search interface with 21 pre-loaded cartridges.
📁 Project Structure
- 📄 index.php - Main search page
- 📄 setup_database.php - Database initialization
- 📄 search.php - Search API
- 📄 get_filters.php - Filter options API
- 📄 config.php - Database configuration
- 📁 css/
- 📁 js/
- 📄 app.js - JavaScript functionality
- 📁 database/ - SQLite database (auto-created)
- 📄 README.md - Full documentation
- 📄 QUICKSTART.md - Detailed setup guide
💡 Alternative: Using XAMPP/WAMP
If you prefer a GUI-based approach:
- Install XAMPP, WAMP, or MAMP
- Copy this folder to the htdocs directory
- Start Apache from the control panel
- Visit http://localhost/ink-cartridge-search/setup_database.php
- Access the app at http://localhost/ink-cartridge-search
🛠️ Customization
- Edit css/style.css to change the design
- Modify setup_database.php to add more cartridges
- Update filter options by adding data to the database
📚 Documentation
For more details, check out:
- README.md - Complete documentation
- QUICKSTART.md - Detailed installation guide