Use PHP to Display MySQL Results in HTML Table

前端 未结 3 1832
滥情空心
滥情空心 2020-12-09 07:13

Update for CodingBiz:

I\'m putting this in my code:

for($i=1;$i<=$numRows;$i++) {
    $output .= \'\';
    $row = $this         


        
3条回答
  •  执笔经年
    2020-12-09 07:38

    i'd try replacing the data part with something like:

    while($row = $this->fetchAssoc($colResult))
    {
      echo "";
      foreach($row as $value)
      {
        echo sprintf("%s",$value)
      }
      echo "";
    }
    

    i know it's not a proper answer, but it's really hard to read that code imho

提交回复
热议问题