Hello. I'm using Joomla 1.5. I have created a custom component that pulls data out of the database perfectly. I initialize the database in my main component file like this:
$db =& JFactory::getDBO();
The problem is that I have a jQuery autocomplete plugin on my component page that makes calls to a PHP file from my component folder. That PHP file searches the database for matching results but I can't do the query because I can't call $db =& JFactory::getDBO();
because this is a custom PHP page and I can't access these functions without any references.
Can anybody help me to call Joomla functions in my custom file ?
Thanks.