if u wanto sort the result, u should code like this:
Code:
$sql = "SELECT *
FROM `table_name`
WHERE `id` = '".$id."'
ORDER BY `timestamp` DESC ";
$query = mysql_query($sql);
while ($rt = mysql_fetch_assoc($query)){
echo '<pre>';
print_r ($rt);
echo '</pre>';
}
Leave a comment: