How do I change the order of the comments entered in a guestbook from newest to oldest entered? Right now it’s displaying the oldest comments first. Here is my code:
[php]
<?php // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect server "); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ ?>
|
<? } mysql_close(); //close database ?> [/php]
Thanks for your help.
Admin Edit: Added [PHP] Code tags for readability. Please refer to http://phphelp.com/guidelines.php for posting guidelines