如何在這段代碼實現分頁:實現分頁的PHP
<?php
include "connect.php";
$query = mysql_query("SELECT username, date FROM users ORDER BY id ASC");
while($row = mysql_fetch_array($query)):
?>
<div><h5><?php echo $row['username']; ?> (<?php echo $row['date']; ?>)</h5></div>
<?php endwhile; ?>
的問題有很多可能的複製[在PHP分頁](的 – pt2ph8 2011-03-30 17:54:42
可能重複http://stackoverflow.com/questions/4857663/pagination- in-php) – 2011-03-30 18:23:57