Array of PDO objects
| From: | Miguel J. Jiménez | Date: | Fri, 06 Jun 2008 07:29:55 +0000 |
| Subject: | Array of PDO objects | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275093@lists.php.net to get a copy of this message | ||
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. |
| mjjimenez@isotrol.com |
:---------------------------------------------------------:
| 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" |
'---------------------------------------------------------'
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc