Skip to content

archercodes13/php-get-search-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP GET Search Select

Simple PHP and MySQL project showing how search works with the GET method.

Description

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.

Features

  • 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

Technologies

  • PHP
  • MySQL
  • HTML
  • CSS
  • PDO
  • MAMP

Main Files

  • index.php
  • functions.php
  • db.php
  • database.sql
  • style.css

Example URL

index.php?search=harry&genre_id=1

Purpose

This project was created as a simple school example to show how GET search and select filters work in PHP.

About

Simple PHP and MySQL GET search project with books, genre select filter and functions.php.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors