Re: MDB2
| From: | Lukas Kahwe Smith | Date: | Thu, 10 May 2007 23:21:07 +0000 |
| Subject: | Re: MDB2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27269@lists.php.net to get a copy of this message | ||
Dan Schultz wrote:
$mdb2->getAll($sql);the equivalent would be $mdb2->queryAll($sql);
I can see that class MDB2 doesn’t have this method, is there anyway to access it, does MDB2 extend DB somehow? Or will ihave to change every ‘getAll’ call in my existing code if I want to use the MDB2 package?If you also intend to use placeholders, like you can in DB, you need to load the extended module and then you can also call getAll(): http://pear.php.net/manual/en/package.database.mdb2.intro-module.php More tipps can be found here: http://www.phpied.com/db-2-mdb2/ regards, Lukas