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

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World