我试图水平显示这些数据,问题是它与标题重叠,并且只在表的第一行和第二行创建重复条目。
这是一个问题的例子:
| Column A | Column B | Column C | Column D | Column E | No Column | No Column | No Column | No Column |
|---|---|---|---|---|---|---|---|---|
| #1 | 20 | 30 | 40 | 50 | 30 | 25 | 15 | 10 |
| #2 | 20 | 30 | 40 | . 50. | 30 | 25 | 15 | 10 |
正确的做法是:
| Column A | Column B | Column C | Column D | Column E |
|---|---|---|---|---|
| #1 | 20 | 30 | 40 | 50 |
| #2 | 30 | 25 | 15 | . 10 |
我已经构建了如下表:
`
<tr> <td><?php echo $candidate['fullname'] ?></td>
<?php foreach($candscores as $candscore): ?>
<?php echo "\t<td>"; ?><?php echo $candscore['score']; ?></td>
<?php endforeach; ?>
<tr></tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
`