Tree-Style Forum Posts
Posted: Sun Jan 01, 2006 2:42 am
I'm having an exceptionally hard time designing a db structure and the code to handle the displaying of forum posts based on a expanded tree design. The main problem for me is handling replies to replies to replies, etc.
I'm storing topics as a unique id, and the post id for the first post in that topic. Each post has a reply id which is -1 if its the first post in a topic, otherwise it's the id of the post it is a reply to.
Like I said above, my problem is the logic (and partially syntax) behind displaying everything in a nested fashion. Help appreicated.
I'm storing topics as a unique id, and the post id for the first post in that topic. Each post has a reply id which is -1 if its the first post in a topic, otherwise it's the id of the post it is a reply to.
Like I said above, my problem is the logic (and partially syntax) behind displaying everything in a nested fashion. Help appreicated.