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
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] .
Thanks for the help guys! I understand this much better now. I really
appreciate your work Jorn, thanks for sharing with us!
3 matches
Mail list logo