Connecting Additional Databases

I am trying to connect to an additional database, but not having much luck,



if have tried



$params = array(
'table_prefix' => 'pcd_',
'dbc_name' => 'pcd'
);
$db['name'] = 'root';
$db['user'] = 'user';

db_initiate('localhost', $db['user'], 'password', $db['name'], $params);
db_connect_to($params, $db['name']);





but all i get is a blank page, i have turned error reporting on an it gives no errors.

[quote name='richiej' timestamp='1401049861' post='184216']

I am trying to connect to an additional database, but not having much luck,



if have tried



$params = array(
'table_prefix' => 'pcd_',
'dbc_name' => 'pcd'
);
$db['name'] = 'root';
$db['user'] = 'user';

db_initiate('localhost', $db['user'], 'password', $db['name'], $params);
db_connect_to($params, $db['name']);





but all i get is a blank page, i have turned error reporting on an it gives no errors.

[/quote]



managed to fix the problem by skipping errors



Registry::set('runtime.database.skip_errors', true);