mysql_fetch_array($result)
Posted: Sat Feb 22, 2003 10:37 pm
hello i have a page that submits information to the database and then a page to display it and i cant figure out how this loop works
how is it moving to the next row each time theres no "$i++" or anything
thanks for any help
and is there anyway to loop backwards like start at the end and move a row up each time
Code: Select all
while ( $myrow = mysql_fetch_array($result) ) {
printf("<table border=0 cellspacing=0 cellpadding=0><tr><td><p>Author : %s</td></tr>
<tr><td><p>Message : %s</p></td></tr>
<tr><td><p>Date : %s</p></td></tr></table><br><hr><br>", $myrowї"name"], $myrowї"message"], $myrowї"time"]);
}thanks for any help
and is there anyway to loop backwards like start at the end and move a row up each time