Re: DB_DataObject and Templates
| From: | Michael Wallner | Date: | Wed, 01 Dec 2004 12:09:11 +0000 |
| Subject: | Re: DB_DataObject and Templates | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15940@lists.php.net to get a copy of this message | ||
Hi Sönke ruempler, you wrote:
> I searching for a solution to fetch a result from ->find() into a
> 2-dimensinal Array like DB::getAll or DB::getAssoc. I did not a
> direct way for it. The reason is that I need the whole result-set for
> Smarty template system.
> Any idea?
The following usage is quite common:
while ($table->fetch()) {
$data[] = $table->toArray();
}
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc