Re: show databasetable
| From: | Hojtsy Gabor | Date: | Fri, 16 Mar 2001 07:49:15 +0000 |
| Subject: | Re: show databasetable | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-394@lists.php.net to get a copy of this message | ||
> How do I show database-content with Smarty?
use:
$result = mysql_query("SELECT * FROM foo");
while ($record = mysql_fetch_array($result) {
$rows[] = $record;
}
$smarty->assign("customer", $rows);
And then see the 5-20. example in the manual...
Goba
........................................................... . . . . .
Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror