need to display search results while typing

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
giliat
Forum Commoner
Posts: 28
Joined: Sun May 20, 2007 2:00 pm

need to display search results while typing

Post by giliat »

hello
i need to display search results while typing in the search box befor submiting the request to php page that connect to mysql
the result will display in an div or something



can anyone help me

:?:


thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You probably want to use ajax to send a new request each time the value of the input/text element changes.
see also: http://www.w3schools.com/ajax/ajax_database.asp
giliat
Forum Commoner
Posts: 28
Joined: Sun May 20, 2007 2:00 pm

i need something other

Post by giliat »

i need for a text box that the user type some text = name to search from DB
i like to display the results in a div while typing befor submit
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

And you can achieve that be sending a request via ajax each time the value of the input/text field changes.
Have you read http://www.w3schools.com/ajax/ajax_database.asp ?
Post Reply