Here's a stupid php-newbie question that's related: how can you print the the results in reverse?
Here's what I got -
<?
mysql_connect("localhost", "id", "pwd");
$result = mysql(dbname, "select * from News Order By ID");
$num = mysql_numrows($result);
$i = 0;
while($i < $num) {
echo "<h3>";
echo mysql_result($result,$i,"Title");
echo "<BR>";
echo mysql_result($result,$i,"Author");
echo "<BR>";
echo mysql_result($result,$i,"Date");
echo "</h3>";
echo mysql_result($result,$i,"Message");
$i++;}
?>
...Which of course outputs the rows in the SQL table ordered by the auto-incremented ID field. instead of having it print the rows in forward order (say, 1 through 6) how can I get them to print backwords - w/ row 6 at the top, down to 1 on the pages bottom?
thanks well in advance.