Multiple Database Connection Using Prepard Statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I connect to multiple mySQL databases using Prepared Statements ?

I have the syntax

===
$dsh = 'mysql:host=localhost;dbname='.$database3; 
$dbh = new PDO($dsh, $username, $password); 
===

I want to connect to $database1 without loosing my $database3 connection

Thoughts?  Comments?  


Ron Piggott


www.TheVerseOfTheDay.info 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux