RE: [PEAR] Migrating from PEAR::DB to PEAR::MDB2
| From: | Mark Steudel | Date: | Sun, 02 Dec 2007 10:01:04 +0000 |
| Subject: | RE: [PEAR] Migrating from PEAR::DB to PEAR::MDB2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28248@lists.php.net to get a copy of this message | ||
Not sure how up to date this is anymore but this is a great article on some
of the differences between db and mdb2
http://www.phpied.com/db-2-mdb2/
Mark
-----Original Message-----
From: Gerry Demaret [mailto:ml@x-net.be]
Sent: Friday, November 30, 2007 4:40 PM
To: pear-general@lists.php.net
Subject: [PEAR] Migrating from PEAR::DB to PEAR::MDB2
Hello list,
I'm currently working on a project that is still using the PEAR::DB
classes, and I was looking into migrating it to PEAR::MDB2.
However, I have encountered a problem. It makes extensive use of the
following feature of PEAR::DB:
$id = $db->getOne('SELECT id FROM language WHERE name_short=?',
array($name));
The array with values to replace in the query. I have been looking at
MDB2, but it doesn't seem to support it? I found this feature one of the
best in PEAR::DB.
Am I looking in the wrong places? Does MDB2 support this feature at all?
Kind regards,
Gerry.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php