Skip to main content

AJAX Live Search using PHP

Language

Hi guys this code will help you on how to create a Google like live search. The result of the search query will be displayed below the textbox. Also, you can customize this code by adding a link on the dropdown list and redirect it automatically to the desired page. The data in the database is display on a table in this sourcecode. This code is easy to be understood and easy to integrate in you project hope that this sourcecode will help you in your future activity hope you will like this thank you. Database name: db folder books.sql

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Hi, thanks for the code. Could you please support to create a search page, with option for search with multiple fields. for example, instead of 'book title' (in the attached code) 3-4 additional fields and also there is one option for changing the 'where' condition in SQL by using a drop down list (option for selecting the field in the table and inputting the search value) or something like.....

Add new comment