Anwyays, Basically I have javascript that sends data to "/livesearch.php"
http://www.ordorica.org/livesearch.php
with the search string $lookup;
so the javascript does this:
http://www.ordorica.org/livesearch.php?lookup=XXX
where XXX is some search string.
then I do a $_GET['lookup']; in my livesearch.php to grab the string and attempt to use it to search through the etomite database.
my livesearch.php right now is heavily based off of FlexFormSearch and the Normal search snippet.
However, I get this error because I can't access the etomite database i'm guessing?
Fatal error: Call to a member function on a non-object in /www/o/ordorica/htdocs/livesearch.php on line 251
Line 251:
$snippetRs = $etomite->dbQuery($snippetSql);
Please help me out. I just started learning php and I don't know much about databases either. Anyways, if I can figure this out I would like to make a live search snippet.
Here is my demo test page:
http://www.ordorica.org/index.php?id=106
I at least know that the search string makes it into the system because I have printed an echo of it out which updates nicely as you type. The search bar is in the top left of the page.
Sorry, it may not look or run well, only tested with IE and Firefox. I just started today and this is extremely alpha!
Thanks
Attached Files
Edited by hechacker1, 05 January 2006 - 11:11 AM.











