I need help with this problem.
I need to connect more than one database using odbc from php.
I'm doing a web based aplication in php and I have to use odbc but I don't know how to make the connection to 2 databases.
these is how I make a single connection.
Code: Select all
define('DB_HOST', 'Bupa01');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root1');
define('DB_DATABASE', 'CWF');
$link = odbc_connect(DB_DATABASE, DB_USER, DB_PASSWORD);
if(!$link) {
die('Failed to connect to server!');
}I have another database in the same server, the user and pw is the same, the only thing that change is the database name.
please any help with that.
Thanks