RE: MDB2
| From: | Dan Schultz | Date: | Thu, 10 May 2007 23:56:33 +0000 |
| Subject: | RE: MDB2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27270@lists.php.net to get a copy of this message | ||
Thanks for the info, so getAll no longer exists, so do I have to change all
my calls to queryOne, queryRow, queryAll ?
Dan Schultz
310.600.4938
dan@formula23.com
www.formula23.com
-----Original Message-----
From: Lukas Kahwe Smith [mailto:smith@pooteeweet.org]
Sent: Thursday, May 10, 2007 4:21 PM
To: Dan Schultz
Cc: pear-general@lists.php.net
Subject: Re: MDB2
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