sorry, did an all nighter last night and again tonight. possibly not making the greatest sense.
i have my posted table with fields
id, title, content, author, parent_forum, parent_post
so all threads store the id of the parent forum. all replies store the id of the parent_post, and all posts which start a thread (ie are the first in that thread) don't have a parent_post
so if i want all the posts in a thread i do WHERE id=$id OR parent_post = $id, and this gives me the first thread and all those that have that thread id in parent_post
and to get all the threads in a forum (ie to show the index), i do "WHERE parent_forum=$forum_id"
but then how do i sort this, so the threads are sorted by the maximum posted date in that collection of posts?
sh*t, think that's even more occluded than the first thread. sorry mate, thanks for trying!
another way of saying it: how does this site do the select sql so when you post a reply to an old thread, it moves to the top?