I am building a comment based project, in which the user post comments and other can reply his/her comments.
I want to show the comments in nested form.For example:
2)Reply TO Comment no 1
3)Reply tocomment no. 2
4)Reply to comment no 1
5) Reply tocomment no. 5
I have a database tablble tbl_comment having columns
CommentID, CommentText, Date, time, ParentID
where parentID is the commentID for which the reply is made.
I having trouble in retrieving the tree view of comments