【发布时间】:2019-03-28 08:34:10
【问题描述】:
美好的一天!我在显示表中的数据时遇到问题。我已经输入了 6 个数据,它将显示我的 $i++ 中有多少个基数,但它不显示用户名、全名和 udate。我真的很感激请,谢谢! Table Display这是我的代码:
table class="table table-striped table-sm">
<thead>
<tr>
<th>No</th>
<th>User No</th>
<th>User Name</th>
<th>Date Registered</th>
</tr>
</thead>
<tbody>
<?php
$i=0;
$uquery= mysqli_query($conn, "SELECT * FROM users");
while ($uresult=mysqli_fetch_array($uquery)){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php $uresult ['userno'];?></td>
<td><?php $uresult ['fullname'];?></td>
<td><?php $uresult ['udate'];?></td>
<?php }; ?>
</tbody>
</table>
【问题讨论】: