Can anyone suggest a creative database structure + fetching algorithm for a threaded comments system, that would output x amount of threads per page (with unlimited replies for each)?
I can run a query to get the threads, and in each instance of a loop, run another query to echo out the replies.... but that's a bad idea.