php分页代码怎么搞??这段代码到第10页就不行了 5
<divclass="paging"><ahref="<?php$feng=$_GET['m'];$newstr=substr($feng,0,strlen($feng)...
<div class="paging"> <a href="<?php $feng=$_GET['m']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]-1;$boss="?m=".$newstr1.$hello1;echo $boss;?>" target="_self">上一页</a>
<a href="<?php $feng=$_GET['m']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]+1;$boss="?m=".$newstr1.$hello1;echo $boss;?>" target="_self">下一页</a>
<a href="javascript:void(0);">当前第<?php echo $hello[2];?>页</a> 展开
<a href="<?php $feng=$_GET['m']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]+1;$boss="?m=".$newstr1.$hello1;echo $boss;?>" target="_self">下一页</a>
<a href="javascript:void(0);">当前第<?php echo $hello[2];?>页</a> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询