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. Link to comment https://forums.phpfreaks.com/topic/93764-replying-to-comments/ 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! Link to comment https://forums.phpfreaks.com/topic/93764-replying-to-comments/#findComment-480463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.