![]() |
Selecting Latest Forum Post Threads
I've made a simple user forum on a site. More along the lines of "threaded comments".
On my front page I'd like to show the top 5 latest commented threads. IE - 5 Threads that received the latest comments. Code:
CREATE TABLE `forumPost` (Code:
CREATE TABLE `forumThread` (Basically something like: Code:
SELECT * FROM forumPost GROUP BY(DISTINCT(thread)) ORDER BY date DESCThanks jw |
Perhaps this is what you want to achieve:
Code:
SELECT DISTINCT(thread) FROM forumPost [...] |
| All times are GMT. The time now is 07:43 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0