🖨️ 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

🚀 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/
    • 📄 style.css - Styling
  • 📁 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:

  1. Install XAMPP, WAMP, or MAMP
  2. Copy this folder to the htdocs directory
  3. Start Apache from the control panel
  4. Visit http://localhost/ink-cartridge-search/setup_database.php
  5. Access the app at http://localhost/ink-cartridge-search

🛠️ Customization

📚 Documentation

For more details, check out: