See, I allready have a way to get the tree structor and the replys and everything, but i dont know how well it works in terms of speed and memery when there might be alot of replys and topics. This is what i have so far:
function DisplayThread($num)
{
GLOBAL $db, $fname;
$result = mysql_query("SELECT * FROM $fname WHERE parent_id = $num ORDER BY date",$db);
if (mysql_num_rows($result))
{
$data .= "<ul><li>".$myrow[topic]."-by ".$myrow[poster]." on ".$myrow[date]." at Remote Host";
$data .= DisplayThread($myrow[id]);
$data .= "</li></ul>";
}
}
return $data;
}
Is there a better way of doing this?
Also: I stripped down the example of the hyper links and stuff.