$result3=mysql_query("select * from $mail");
while($row=mysql_fetch_array($result3)) {
if($row['status']!=NULL) {
echo $row['status'];
echo $row['date'];
echo $row['time'];
}
}
i want that the last field in the database should be displayed first. How to implement this?
Never do yourself what the database can do for you.
If, for whatever weird reason, you actually want to traverse the result set in reverse order, you’ll have to use
mysql_data_seek, starting atmysql_num_rows() - 1and decrementing the pointer after each call tomysql_fetch_array.