Hi,
Thanks for the reply. Sounds like I am right to avoid the API functions in that case. What has me confused a bit is this example from the wiki :
//connect to seperate mysql db
$modx->db->connect('123.45.6.7', 'mydb', 'user', 'password', true);
$res = $modx->db->select('*', 'this_table');
while($tmp = $modx->db->getRow($res, 'assoc'))
{
//do somethign with the data
}
//disconnect
$modx->db->disconnect()
//reconnect to modx db
$modx->db->connect();
which to me suggests that it’s possible to link with another db without impacting modx. But it’s not clear that in this example another instance (as you suggested) is automatically being created, as there is an explicit reconnect to the modx db at the end. This, despite what the text preceding the example seems to imply.
If I’m wrong, that would be good to know, as I wouldn’t then have to recreate a pile of db access calls
Thanks again,
MattC