hello...
i have a forum using parent id and qid(auto increment). Parent id will be set "0" if this is a new thread, otherwise, parent id = qid (reply).
In my index page, I can read the parent thread just as usual using select * from forum where parent id = 0 order by last update date.
But I want to know how do I also display the num of replies to those replies also.
I am using a while loop to generate the parent thread as
while ($row = $result->fetchRow()) {
echo" $q_id = $row[0];";
echo" $forum_type = $row[1];";
echo" $user_id = $row[2];";
echo" $title = $row[3];";
echo" $body = $row[4];";
echo" $last_upd_date = $row[5];";
}