show databasetable
| From: | Michael Temeschinko | Date: | Thu, 15 Mar 2001 23:53:39 +0000 |
| Subject: | show databasetable | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-393@lists.php.net to get a copy of this message | ||
Hi all,
How do I show database-content with Smarty?
$result = mysql_db_query(db, "select * from foo", dbh);
$fields = mysql_fetch_row($result);
$smarty->assign(customer, $fields);
{section name = customer loop=$fieds}
...
but this shows (of course) only the first row :(
- with friendly greetings
from Germany
Michael Temeschinko