For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2007 > RE: [PEAR] Migrating from PEAR::DB to PEAR::MDB2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PEAR] Migrating from PEAR::DB to PEAR::MDB2
Mark Steudel

2007-12-02, 4:28 am

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
Adup2

2007-12-06, 6:08 am

http://www.thetubebender.com/Play?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com