この質問に続いて、出力のスタイルを設定する必要があるのは、php がタグを配置する私の方法を気に入らないことを見つけるためだけ"
です。.
<?php $row['field'] ?>
<table class="table table-hover">
<caption>List All Customers from Customer Table</caption>
<thead>
<tr>
<th>id</th>
<th>Inital</th>
<th>First Name</th>
<th>Last Name</th>
<th>Mobile</th>
<th>Landline</th>
<th>Email</th>
<th>Address</th>
<th>Post Code</th>
</tr>
</thead>
<tbody>
<tr>
<?php
foreach ($rows as $row) {
?>
<td><?php $row['clientid']; ?></td>
<td><?php $row['inital']; ?></td>
<td><?php $row['firstname']; ?></td>
<td><?php $row['lastname']; ?></td>
<td><?php $row['mobile']; ?></td>
<td><?php $row['landline']; ?></td>
<td><?php $row['email']; ?></td>
<td><?php $row['address']; ?></td>
<td><?php $row['postcode']; ?></td>
<?php } ?>
</tr>
</tbody>
</table>
機能しません。結果が表示されません。:( 毛を抜いています! 代替の質問を見ましたが、北上は十分に明確です。