?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(); // 翻页栏 ?