Bastien Koert
On 2012-05-19, at 2:36 PM, "Ron Piggott" wrote:
>
> 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 c
Just remember to close the correct connection whn it is time to :)
-Original Message-
From: Matijn Woudt [mailto:tijn...@gmail.com]
Sent: 19 May 2012 23:42
To: Ron Piggott
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Multiple Database Connection Using Prepard Statements
On Sat, May 19
On Sat, May 19, 2012 at 8:36 PM, Ron Piggott
wrote:
>
> 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
On 19 May 2012 20:36, Ron Piggott wrote:
>
> 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 lo