Posted: Wed Jun 16, 2004 4:24 pm
I think he's looking for something like this:
Code: Select all
// assuming you have this function, for post clarity.
$entries = $db->guestbook_entries_fetch();
// looping through the entries, counting 1, 2, 3, 4, .. while ignoring the row ID
for ($i=0; $i<count($entries); $i++) {
echo 'This is entry number '.$i.'<br />';
echo $entries[$i]->text;
}