English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i am trying to sort the data by time:.
i want it to show the new ones first but it shows the old ones first.
anybody can help? this is my code:
$data = mysql_query ("SELECT * FROM clanforum WHERE clan = '$clan' ORDER BY time");

2006-06-16 18:11:44 · 2 answers · asked by aryaxt 3 in Computers & Internet Programming & Design

2 answers

change your query to ORDER BY time DESC

2006-06-16 18:16:41 · answer #1 · answered by Gizmo L 4 · 0 0

Right query:
$data = mysql_query ("SELECT * FROM clanforum WHERE clan = '$clan' ORDER BY time DESC");

2006-06-20 05:36:19 · answer #2 · answered by Nixon 2 · 0 0

fedest.com, questions and answers