Not a challenge...
... ORDER BY date DESC ....
( newest dates first )
then to format in table:
CONNECT, QUERY, AND SHOW RESULTS
$db=mysql_connect($host,$user,$pass);
$res=mysql_query("SELECT * FROM ... ORDER BY date DESC",$db);
echo "<TABLE>";
while($row=mysql_fetch_array($res)){
echo "<TR>";
for($x;$x<count($row);x++){
echo "<TD>".$row[$x]."</TD>";
}
echo "</TR>";
}
echo "</TABLE>";