php新手之mysql分页调用程序

发表于:2007-07-02来源:作者:点击数: 标签:


<?php
include("inc/PageQuery.inc");
$pq = new PageQuery(2); // 获取Connection
$pq->myQuery("select * from users"); // 执行查询
while($row = mysql_fetch_array($pq->result) ) {
echo $row["id"] . ", ";
echo $row["Username"] . ", ";
echo $row["Password"];
echo "<br>";
}
echo $pq->PageLegend(); // 翻页栏
?>

原文转自:http://www.ltesting.net