Loop with section sentence

From: Date: Tue, 05 Apr 2005 03:14:22 +0000
Subject: Loop with section sentence
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12394@lists.php.net to get a copy of this message
Well list: I new in the world of Smarty. I have this pages: objetives.php and objetives.tpl. This is a part of code in wich I try to return element contains in a database: // previously I construct a object from AdoDB Class $objeres = $database->Execute('SELECT * FROM objetivos'); $objnrows = $objeres->RecordCount(); in this code how I return a value contain in a fields, something like while($row = mysql_fetch_array($objres)); and this is a part of objetives.tpl in wich I try to show data obtain in previously query. <section name=objRes loop=$objnrows> <tr> <td width="3%"><$objnrows[objRes][0]></td> <td width="97%"><$objnrows[objRes][1]></td> </tr> </section> but the page show me this code in: <$objnrows[objRes][0]> <$objnrows[objRes][1]> what's wrong in this code? Help Me please? Regards PD: Soury my English but I not speak much them my language is spanhis. Reynier Pérez MiraBlog de ReynierPM ______________________________________________ Renovamos el Correo Yahoo!: ¡250 MB GRATIS! Nuevos servicios, más seguridad http://correo.yahoo.es

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