我正在尝试获得此输出Province 1.city 1 33poits 2.city 2 33poits 3.city 3 33poits我目前的输出是什么Province 1.city 1 33pointsProvince 2.city 2 33pointsProvince 3.city 3 33points请在这里帮助一个新手,下面是我的 php 代码<?php$sql = "SELECT * FROM ccty WHERE ID=".$ID;$results = $mysqli->query($sql);if ($results->num_rows > 0) { while ($row = $results->fetch_object()) { ?> <table> <tr><?= $row->PID; ?> <td><?= $row->SPID; ?><?= $row->points; ?></td> </tr> <?php }} else { echo "No record available!";}?>
1 回答
- 1 回答
- 0 关注
- 181 浏览
添加回答
举报
0/150
提交
取消