Re: MDB2 and QuickForm

From: Date: Mon, 05 Jun 2006 13:22:42 +0000
Subject: Re: MDB2 and QuickForm
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24250@lists.php.net to get a copy of this message
Köteles Zoltán wrote:
$result = $mdb2->queryAll($query);
<snip>
$select->loadDbResult($result, 'country_name', 'country_id');
I dont know Quickforms, but from a quick scan of the source and documentation I think you need to use loadArray: http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-select.loadarray.php @Alexey: loadDbResult() only works with DB .. I can work on a solution to would make things work with MDB2 as well. In that case you would however need to use query() and not queryAll(). regards, Lukas

« previous php.pear.general (#24250) next »