Re: Pears DB Abstraction and Smarty

From: Date: Wed, 20 Feb 2002 10:36:30 +0000
Subject: Re: Pears DB Abstraction and Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2766@lists.php.net to get a copy of this message
At 09:44 AM 2/20/02 +0000, chiefmonkey wrote:
$row=$result->fetchrow(DB_FETCHMODE_ASSOC))
You need to use while ($row = $result->...) { $data[] = $row; } $smarty->assign('row', $data); and you should have more luck. Read the PEAR manual for more examples. Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Glenbranter - Scottish narrow gauge in 009 http://glenbranter.narrow-gauge.co.uk --oOo--

« previous php.smarty.general (#2766) next »