php - Append comment replies based on parent ID -
initially have of comments stored in array $commentsrow
, has arrays values (containing comment info such username, date, etc).
foreach($commentsrow $comment){ // variables set, including one: $parent_id = $comment['parent_id']; ?> // html here <?php } ?>
so works comments no parent (i.e. not reply), how "append" replies parent based on id?
Comments
Post a Comment