These are the tables:
threads:
id, date, title, text
comments:
id, thread_id, date, comment
How would I do to list the last commented thread on top?
This is currently how it looks:
$threads = mysql_query("SELECT id, title FROM threads ORDER BY date ASC");
while ($thread = mysql_fetch_assoc($threads)) {
echo $thread['title'];
}
I can't figure this one out folks. So if someone could give me an hand that would be great!
Cheers!