I'm guessing this issue is only relevant to modules not components. I'm using one of the custom code components to access the same database and it works fine.
Is it possible getinstance is a 1.5 only function?
****************************
getInstance (line 194)
Returns a reference to the global Database object, only creating it if it doesn't already exist.
The 'driver' entry in the parameters array specifies the database driver to be used (defaults to 'mysql' if omitted). All other parameters are database driver dependent.
* return: A database object
* since: 1.5
JDatabase &getInstance ([array $options = array()])
* array $options: Parameters to be passed to the database driver
http://api.joomla.org/Joomla-Framework/ ... etInstance
****************************
Does my joomlise sql look correct? ie most of the code should be the same as if, in the joomla database. I'm guessing the only different between an internal and external is the line
$database = & JDatabase::getInstance( $option );
unfortunately a search for external database leads to this post.
I'm gonna check the fabrik module code to see if I can find any hints there. I'll post anything I find.
Thanks again rogue.