Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

i want to make a nested commenting system. there have any tutorials which i can use for learn the nested comment system structure.. :D i am confusing with nested comment system. so help me guys!

i searched lot of things.but yet i couldn't find something. so help me guys!

Facebook has a nested comment system. i want to make a nested comment system.(not exactly like facebook.just want to use that method only!)

i want to know the Database Structure and the Queries which i can use for the Nested Comment system with PHP/MySQL.

Explain this too:

   Article
                         /-----(1, 12)----\
                   Comment                 Comment
               /---(2, 5)               /--(6, 11)--\
         Comment                    Comment        Comment
         (3, 4)                     (7, 8)         (9, 10)
share|improve this question
Just add a field like comment_id to your table. If it's null, it's a parent comment otherwise it's a child of another comment, now good luck with writing query for that :). BTW, your question has nothing to do with jQuery. – undefined 4 mins ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.