Skip to main content

Live Search Using PHP/MySQL

Language


This code will help you on how to create a facebook like live search. This program uses javascript to display results (without pressing the enter key) right after you pressed any key without moving to other page.

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. This code is easy to be understood and easy to integrate in you project.

Database name: simple_login

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

Submitted byAnonymous (not verified)on Wed, 01/09/2013 - 23:13

if i enter 1234 and after that cccc cccc nothing happen.
This is all so valid if i enter cccc cccc and afer Argie.

Submitted byAnonymous (not verified)on Tue, 06/04/2013 - 10:57

THis does work for me. Only reads what was entered in the database as shown in the picture. Just have to make some adjustment to the code to your liking.

Submitted byAnonymous (not verified)on Sat, 07/13/2013 - 09:51

Works well except for when you delete the whole search to type for a new query, it shows nothing even if its a valid search. :(

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.