php入门mysql分页调用程序_MySQL
程序员文章站
2022-04-13 20:32:17
...
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 "
";
}
echo $pq->PageLegend(); // 翻页栏
?>
$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 "
";
}
echo $pq->PageLegend(); // 翻页栏
?>
上一篇: 详解同步、异步、阻塞和非阻塞的不同之处
下一篇: 详细介绍什么是Java applet