As most of you know, vb uses an object for the database connection ($DB_site).
I'm trying to create a second such object ($DB_gamesite) so that I can use vb's functions to manipulate another database.
In global.php I added
Code:
$DB_gamesite=new DB_Sql_vb;
$DB_gamesite->appname='EoCGame';
$DB_gamesite->appshortname='EoC';
$DB_gamesite->database='EoCGame';
$DB_gamesite->server=$servername;
$DB_gamesite->user=$dbusername;
$DB_gamesite->password=$dbpassword;
$DB_gamesite->connect();
Yet, somehow whenever I try to do a query using this new object, it queries the database from the original object (EoCBoard instead of EoCGame). How on earth is that possible?