php 分页2
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
共<?php echo $totalnum;?>条 ;共<?php echo $pagecount;?>页;每页显示<?php echo $pagenum;?>条
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=1">首页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php if($page>1) echo $page-1; else echo $page=1;?>">上一页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php if($page<$pagecount-1) echo $page+1; else echo $pagecount; ?>">下一页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php echo $pagecount;?>">尾页</a>
摘自 chaojie2009的专栏
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=1">首页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php if($page>1) echo $page-1; else echo $page=1;?>">上一页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php if($page<$pagecount-1) echo $page+1; else echo $pagecount; ?>">下一页</a>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?php echo $pagecount;?>">尾页</a>
摘自 chaojie2009的专栏
相关新闻>>
- 发表评论
-
- 最新评论 更多>>