[英]PHP Limit number of rown in table
I've got a fairly large database of users, and I wish to limit only about 15-20 rows for each page. 我有一个相当大的用户数据库,我希望每个页面只限制15-20行。 And if it's not too much trouble.
如果不是那么麻烦。 How am I going to make pages to continue surfing the whole table showing only 20 rows each page.
我要如何使页面继续浏览整个表,而每页仅显示20行。
while($rows=mysql_fetch_array($result)){
?>
<tr>
<td><?php echo $rows['name']; ?></td>
<td><?php echo $rows['points']; ?></td>
<td><?php echo $rows['winratio']; ?></td>
<td><?php echo $rows['pointsratio']; ?></td>
<td><?php echo $rows['finishedmaps']; ?></td>
<td><?php echo $rows['lastseen']; ?></td>
</tr>
<?php
}
mysql_close();
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.