hey, I have a database that stores the data for a news script (title, date, text, etc.) For example, i have one row with 3 columns. the columns are the title of the news update, the date it happened, and the actual textual update. Each row is a new update. My code right now is:
for ($count=0; $count<=mysql_fetch_row($result); $count++) {
$title = mysql_result($result,$count,"title");
$time = mysql_result($result,$count,"date");
$news = mysql_result($result,$count,"news");
$name = mysql_result($result,$count,"name");
$updates = mysql_result($result,$count,"updates");
then i use the variables to insert the data into html tables to fit the layout. However, using the FOR loop this way, it starts from the first row, and continues down. Thus, on my page, each new row (update) will be put under the one before it. However, in a news script it should go above it( the most recent update first). How would i alter my loop to do this?