Home  >  Article  >  Database  >  php入门mysql分页调用程序_MySQL

php入门mysql分页调用程序_MySQL

WBOY
WBOYOriginal
2016-06-01 13:55:27929browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn