{section} with MySQL Data
| From: | Leliel | Date: | Sat, 12 Apr 2003 18:04:56 +0000 |
| Subject: | {section} with MySQL Data | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9224@lists.php.net to get a copy of this message | ||
Hi,
I would like to use a Smarty {section} with MySQL Data.
The data is beeing fetched by mysql_fetch_array() and
assigned to smarty, but the section in the template
does only displays garbage. Only the first letter of
each dataset.
That's the code:
{section name=news loop=$newsdata}
{$newsdata[news].text}
{/section}
whats wrong??
echo $newsdata['text']; works fine ...