Re: [PHP-DB] Prepared Statements With Multiple Databases

2011-09-30 Thread Bastien
On 2011-09-30, at 8:26 PM, "Ron Piggott" wrote: > > I need my Prepared Statement database connection to be able to connect with > two different databases (which use the same username / password). > > They are assigned variables > > $database1 and $database2 > > What I have been using so fa

[PHP-DB] Prepared Statements With Multiple Databases

2011-09-30 Thread Ron Piggott
I need my Prepared Statement database connection to be able to connect with two different databases (which use the same username / password). They are assigned variables $database1 and $database2 What I have been using so far is: $dsh = 'mysql:host=localhost;dbname='. $database1; $dbh = new