分页
$conn = @mysql_connect('localhost:3306','test','test');
include_once "js.class.php";
include_once "pager.class.php";
include_once "whxbb.class.php";
include_once "whxbb_article.class.php";
// 以上代码最好全放在一个包含文件中
/* 分页显示文章列表,每页10条 */
$article = new WHXBB_Article();
$info = $article->GetNInfo(10, $page);
$pager = $article->pager;
if (WHXBB::isError($info))
new WHXBB_Error("读取文章信息失败,请您稍后再试", 1, WHXBB_ERROR_ECHO);
else if($info == 0)
new WHXBB_Error("没有任何您需要的信息", 2, WHXBB_ERROR_ECHO);
else
{
for ($i = 0; $i {
$arr = $info[$i];
?>
=$arr['title']?> - 作者: =$arr['author']?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号