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() 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


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

---
.-.
| Miguel J. Jiménez   |
| Sector Público, ISOTROL S.A.|
| [EMAIL PROTECTED]   |
:-:
| KeyID 0xFFE63EC6 hkp://pgp.rediris.es:11371 |
:-:
| Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.|
| Parque Tecnológico Cartuja '93, 41092 Sevilla (ESP).|
| Tlfn: +34 955 036 800 (ext.1805) - Fax: +34 955 036 849 |
| http://www.isotrol.com  |
:-:
| UTM ED-50 X:765205.09 Y:4144614.91 Huso: 29 |
:-:
|   "Me dijeron: 'instala Windows, se listo'; así que |
| instalé primero Windows y luego fui listo y lo borré|
| para instalar Linux"|
'-'


signature.asc
Description: PGP signature