Hierarchical Comments in MySQL Script

Does anyone know where I can find an open source script so I can just look at that does nested comments.

This website does nested comments along with many more.


I want to do this the right way so recursion is not an option since that's very inefficient.

You can do nested-anything by storing the comment's parent id in the comment record. Anytime you look up a comment, check to see if there's any other comments who parent_id equals the comment_id of the record.

I wanted to do something more like this.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.