I have a small script that is fetching data as
I want to display the fetched data in Descending order based on the value in 'up' for each entry , so I tried thatCode:$sql=mysql_query("SELECT * FROM messages LIMIT 9"); while($row=mysql_fetch_array($sql)) { $msg=$row['msg']; $mes_id=$row['mes_id']; $up=$row['up']; $down=$row['down']; ?>
but I get the error "supplied argument is not a valid MySQL result resource"Code:$sql=mysql_query("SELECT * FROM messages LIMIT 9 ORDER BY up DESC");
What is the problem here
Thanks









Bookmarks