Hi,
suppose I have the script follows:
index.php
// select 10 records containing 'name', 'email', 'url', 'location', 'message'
$qid = $DB->query("SELECT * FROM guestbook LIMIT 0, 10");
I want to loop through $qid and display the records, how do I code the script and template file? I try to use '{foreach}{/foreach}', but it can't loop through a data object.
The template format can be simple as:
{$name}<br>
{$email}<br>
{$url}<br>
{$location><br>
{$message}<br>
Thanks:rolleyes: