根据父ID附加评论回复

时间:2015-07-01 20:54:01

标签: php

最初,我将所有注释存储在数组$commentsrow中,其中数组为数组(包含用户名,日期等注释信息)。

  foreach($commentsrow as $comment){

    // variables are set, including this one:

    $parent_id = $comment['parent_id'];

  ?> 

  // HTML is here


  <?php }

  ?>

所以这适用于没有父母的评论(即不是回复),但我如何根据其ID实际“追加”回复父母?

0 个答案:

没有答案
相关问题