Re: {section} with MySQL Data
| From: | Tom Sommer | Date: | Sat, 12 Apr 2003 20:16:06 +0000 |
| Subject: | Re: {section} with MySQL Data | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9227@lists.php.net to get a copy of this message | ||
On Sat, 12 Apr 2003 20:04:56 +0200, Leliel wrote:
Leliel, please respond to the list, not to me privatly...
-
As I mentioned, the correct code for you, would be
$sql = mysql_query("SELECT id, title, text FROM news");
while ($rs = mysql_fetch_array($sql) )
{
tmp[] = $rs;
}
$smarty->assign('newsdata', $tmp);
thats all... try it!
If you really found that example you mailed me on smarty.php.net then it's
a wrong example... try this one!
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk