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?
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.