Simple PHP and MySQL project showing how search works with the GET method.
This project is a basic example of searching books using PHP, MySQL and GET parameters.
The search form allows users to search books by text and filter them by genre using a select dropdown.
The main search logic is stored in functions.php.
- Search using GET method
- Search books by title or author
- Filter books by genre
- Genre select dropdown
- Results displayed in a table
- Simple PDO database connection
- Search function in functions.php
- Basic CSS styling
- PHP
- MySQL
- HTML
- CSS
- PDO
- MAMP
index.phpfunctions.phpdb.phpdatabase.sqlstyle.css
index.php?search=harry&genre_id=1
This project was created as a simple school example to show how GET search and select filters work in PHP.