You can still use PDO in order to access as many databases you need
using different handlers. This is a way for e.g.
$dbhost1 = 'localhost';
$dbuser1 = 'test';
$dbpass1 = '12345';
$db1 = 'database_name';
$dbh1 = new PDO('mysql:host='.$dbhost1.';dbname='.$db1, $dbuser1,
$dbpass1);
$dbhos
Suamya Srivastava wrote:
Hello,
In a single PHP code, I want to connect to two mysql databases with
totally different authentication information. Is it possible?
See http://php.net/mysql_connect - you need to set 'new_link' to true in
the mysql_connect call.
--
Postgresql & php tutorials
ht