I have made a simple discusion forum.
The fields are id, poster, email, parent_id, title, desc, approved, last_modified.
I would like to display the amount of times the a message has been replied to, not just the main message. I will give an example.
message 1
reply 1
reply to reply 1
reply 2
I would like the number of replies to be 3. I currently just using a simple query to see how many messages have the parent_id of message 1 which gives me 2 of course. I have tryed a recursive query, but it does wierd things.
If someone could help me out I would greatly appreciate it.
Thanks
Shawn
The fields are id, poster, email, parent_id, title, desc, approved, last_modified.
I would like to display the amount of times the a message has been replied to, not just the main message. I will give an example.
message 1
reply 1
reply to reply 1
reply 2
I would like the number of replies to be 3. I currently just using a simple query to see how many messages have the parent_id of message 1 which gives me 2 of course. I have tryed a recursive query, but it does wierd things.
If someone could help me out I would greatly appreciate it.
Thanks
Shawn