diff options
-rw-r--r-- | category.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/category.php b/category.php index b2f6dbd..b444ef3 100644 --- a/category.php +++ b/category.php @@ -27,7 +27,7 @@ mysqli_free_result($result); echo '</section>'; -$sql = "SELECT topic_id, topic_subject, topic_date, user_name FROM topics LEFT JOIN users ON topic_author = user_id WHERE topic_cat = " . mysqli_real_escape_string($dbc, $_GET['id']); +$sql = "SELECT topic_id, topic_subject, topic_date, user_name FROM topics LEFT JOIN users ON topic_author = user_id WHERE topic_cat = " . mysqli_real_escape_string($dbc, $_GET['id']) . " ORDER BY topic_id DESC"; $result = mysqli_query($dbc, $sql); if (!$result) { |