php新手之mysql分页调用程序


1   
2include("inc/PageQuery.inc");   
3$pq = new PageQuery(2); // 获取Connection   
4$pq->myQuery("select * from users"); // 执行查询   
5while($row = mysql_fetch_array($pq->result) ) {   
6echo $row["id"] . ", ";   
7echo $row["Username"] . ", ";   
8echo $row["Password"];   
9echo "

<br/>

1";   
2}   
3echo $pq->PageLegend(); // 翻页栏   
Published At
Categories with 数据库类
Tagged with
comments powered by Disqus