Quote:
Originally Posted by acidburn0520
Bump: Connecting to another database?
|
PHP Code:
switch (strtolower($vbulletin->config['Database']['dbtype']))
{
// load standard MySQL class
case 'mysql':
case '':
{
$db_temp =& new vB_Database($vbulletin);
break;
}
// load MySQLi class
case 'mysqli':
{
$db_temp =& new vB_Database_MySQLi($vbulletin);
break;
}
}
$db_temp->connect(
$vbulletin->config['Database']['dbname'],
$vbulletin->config['MasterServer']['servername'],
$vbulletin->config['MasterServer']['port'],
$vbulletin->config['MasterServer']['username'],
$vbulletin->config['MasterServer']['password'],
true
);