/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// settings.php $db_url['default'] = 'pgsql://user:pass@localhost/default_database'; $db_url['another_db'] = 'pgsql://user:pass@localhost/another_database'; // To use db_set_active('another_db'); // do whatever db_set_active('default');