Re: Migrating from PEAR::DB to PEAR::MDB2

From: Date: Fri, 30 Nov 2007 14:48:06 +0000
Subject: Re: Migrating from PEAR::DB to PEAR::MDB2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28245@lists.php.net to get a copy of this message
Gerry, > $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. $mdb2->loadModule('Extended', null, false); this gives you functions like getOne() -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#28245) next »