if(!$thatpage)
{
$notepage=1;
}
else
{
$notepage=$thatpage;
}
$noterecs=0;
$pagesize=10;
$bbsconn=mysql_connect("localhost","root");
mysql_select_db("雨風",$bbsconn);
$bbsresult=mysql_query("select * from bbs order by ID desc",$bbsconn);
$rsnum=mysql_num_rows($bbsresult);
$pagecount=ceil($rsnum/$pagesize);
mysql_data_seek($bbsresult,($notepage-1)*10);
?>
编号 |
用户名 |
発行表人 |
文章标题 |
公開時間中 |
while(($bbsrow=mysql_fetch_array($bbsresult)) && ($noterecs<=9))
{
?>
td> | td> | td> | " target="disp"> |
td>
|
$noterecs=$noterecs+1;
}
?>
表>
$pad=0;
for($counter=1;$counter<=$pagecount;$counter++)
{
if($counter>=10)
{
$pad="";
}
echo("".$pad.$counter."< ;/font> ");
}
?>
http://www.bkjia.com/PHPjc/315304.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/315304.html技術記事 ?php if(!$thatpage) { $notepage=1; } else { $notepage=$どのページ; $noterecs=0; $ページサイズ=10; $bbsconn=mysql_connect(localhost,root); mysql_select_db(雨風,$bbsconn); $bbsresu...
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
著者別の最新記事
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11