Originally posted by superwormy
SELECT DISTINCT main_id ...
Soemthing along those lines might work, check out the MySQL manual for the DISCTINCT clause...
Sweet so I have this
$result = mysql_query ("SELECT DISTINCT thread_id From forum_posts limit 5");
while ($row = mysql_fetch_array($result)) {
But I also need other things out of it. Such as the topic name... how do i do this??
$result = mysql_query ("SELECT DISTINCT thread_id, title From forum_posts limit 5");
while ($row = mysql_fetch_array($result)) {
???