myQuery("select * from users"); // 执行查询while($">
当前位置:Gxlcms > mysql > php入门mysql分页调用程序_MySQL

php入门mysql分页调用程序_MySQL

时间:2021-07-01 10:21:17 帮助过:25人阅读

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

人气教程排行