Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何以表格形式显示不同表格中的列?_Html - Fatal编程技术网

Html 如何以表格形式显示不同表格中的列?

Html 如何以表格形式显示不同表格中的列?,html,Html,我想以表格形式显示此行: <?php while($row = $ogdata->fetch_array()){ ?> <?php echo "<input type='radio' disabled>".$row['text']; $ans = $row['is_answer']; if($ans == 1) echo "<span style=font-family;color:green;>&

我想以表格形式显示此行:

<?php
   while($row = $ogdata->fetch_array()){
?>
<?php  
   echo "<input type='radio' disabled>".$row['text']; 
   $ans = $row['is_answer'];
   if($ans == 1)
      echo "<span style=font-family;color:green;>&nbsp;<div class='glyphicon glyphicon-ok'>CorrectAnswer</div></span>";
?>                                           
<?php }?>


我认为您必须在mysql查询中加入表