frijole Posted February 29, 2008 Share Posted February 29, 2008 I am comfortable with how to set up a commenting system. I get confused about the replies though. One idea i heard was to give all the comments a parent_id and it would just be NULL if it was not a reply. That makes sense. but, how do you format the replies when echoing to the page? i.e. indenting etcetera? I would really appreciate any help with this. I think it is probably something a lot of people need to figure out at some point as well. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 29, 2008 Share Posted February 29, 2008 You'd use a recursive function to handle replies to replies to replies, etc. Use if statements to decide if they are a comment. Just start working on it and if you get stuck, post for help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.