[jQuery] Re: autosuggest help

2008-09-24 Thread Jörn Zaefferer
You can't query a MySQL database from JavaScript. There has to be some serverside script to execute a query and return the results. Thats what search.php is supposed to do. Jörn On Tue, Sep 23, 2008 at 8:51 PM, allan2008 [EMAIL PROTECTED] wrote: Hello. I'm trying to figure out the

[jQuery] Re: autosuggest help

2008-09-24 Thread BB
Here just a little example how you can do this: // index.htm ... script $(#autocomplete).autocomplete(search.php); /script ... // search.php ?php mysql_connect(localhost, user, pass); mysql_select_db(mySearchTable); $query = mysql_query(SELECT * FROM T_Search WHERE name LIKE ' . $_REQUEST[q] .

[jQuery] Re: autosuggest help

2008-09-24 Thread allan2008
Thanks for the help guys! I understand this much better now. I really appreciate your work Jorn, thanks for sharing with us!