Connecting to Other Databases
PermalinkI was trying to connect to another database outside the C5 one, i found this link under the documentation;
http://www.concrete5.org/documentation/developers/system/database-c...
I tried the part the reads:
Connecting to Other Databases
Developers are able to switch active database throughout a session with a simple command
But i couldn't get it to work, is this still supported?

public function TestExternal() { $db = Loader::db( 'localhost', 'MyUser', 'MyPass', 'MyDB', true); $db->Execute('SELECT * FROM TABLE'); // return to the original db session $db = Loader::db(null, null, null, null, true); }
Any help is appreciated.
ADOdb_Active_Record::SetDatabaseAdapter($_dba);
For some reason that call causes problems for the new connection.
What version are you using?