Live search

I want to have live search in my site(the results are presented to the user as he types)…

What do I have to do to accomplish that?

As far as I know,with every keystroke ajax requests are made to a server script which handles database
queries related to that search…and these are returned back to the client.

Is there anything else to it?
Am I saying it correctly?

I can’t be much help sorry, but this should help

This Google service might help.
Google Search Service Link

Sounds correct to me.
What server-side language are you using?

PHP is my server-side language…

If you try searching Google for “live search ajax php” you get a few tutorials that show you how to implement this.

Here’s one that looks reasonable.

A word of warning, if you implement this, be sure to sanitize any user input you are building your DB queries with otherwise you leave yourself wide open to an injection attack.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.