SQL-querys in templats
| From: | Marcel Güttler | Date: | Fri, 19 Apr 2002 11:19:37 +0000 |
| Subject: | SQL-querys in templats | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3805@lists.php.net to get a copy of this message | ||
Greetings,
is where a function in Smarty to loop throw a query by using template code,
like:
{sql qury="select * from table" name=submenu loop=$subimages}
{section name=submenu loop=$subimages}
$subimages[submenu].url} - {$subimages[submenu].caption}
{/section}
thanks,
Marcel