Re: Array of PDO objects

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

 



2008/6/6 Miguel J. Jiménez <MiguelJose.Jimenez@xxxxxxxxxxx>:

> 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...


i doubt it has anything to do w/ PDO.  have you tried var_dump() to inspect
the contents of $foo[0] ?  and also, have you tried creating the PDO
instances w/ the same arguments outside of the array construct to determine
if there is any difference?

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux