07-30-2009, 08:43 PM
|
#2 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
Hi,
Did you update the PHP file?
PHP Code:
$query = $db->query("SELECT value FROM countries WHERE value LIKE ‘$queryString%’ LIMIT 10");
to
PHP Code:
$query = $db->query("SELECT value,id FROM countries WHERE value LIKE ‘$queryString%’ LIMIT 10");
Then it looks like you need to update this part to:
PHP Code:
echo ‘<li onclick="fill(’‘.$result->value.’‘);">’.$result->value.‘</li>’; }
to something with ID in it. I am not sure how you are making it work.
Does that helP?
MODNOTE: please use tags that are meant for php. Thank you,
Last edited by codefreek : 07-31-2009 at 01:31 PM.
Reason: PHP tags added - please read http://www.talkphp.com/lounge/4563-prettifying-pasted-code-talkphp.html
|
|
|
|