Re: [PHP] Array of PDO objects

2008-06-06 Thread Nathan Nobbe
2008/6/6 Miguel J. Jiménez <[EMAIL PROTECTED]>: > Hi, I want to know if I can set an array with PDO objects, thus: > >$foo = array(new PDO(...), new PDO(...)); >$oSt = $foo[0]->prepare(...); > > and so on... I tried that aproach and PHP is always complaining about > using prepare()

[PHP] Array of PDO objects

2008-06-06 Thread Miguel J. Jiménez
Hi, I want to know if I can set an array with PDO objects, thus: $foo = array(new PDO(...), new PDO(...)); $oSt = $foo[0]->prepare(...); and so on... I tried that aproach and PHP is always complaining about using prepare() in a non-object... --- .-