php分页点击下一页就没了

2025-01-20 18:27:55
推荐回答(4个)
回答1:

因为$_GET['leibie']未传递

......
$myurl=$_SERVER['PHP_SELF'].'?leibie='.$leibie;
?>



  • }
    while($contents = mysql_fetch_array($rs));//do....while

    $per = $page - 1;//上一页
    $next = $page + 1;//下一页

    echo "显示第 " . ($Total ? ($startnum +1) : 0) . "-" . min($startnum + $perpagenum, $Total) . " 条记录 ";

    echo "共有".$Total."条记录,每页".$perpagenum."条";

    if($page != 1)
    {
    echo "首页";
    echo " 上一页";
    }
    if($page != $Totalpage)
    {
    echo " 下一页";
    echo " 尾页";
    }
    $myurl.='&page';
    //下拉跳转列表,循环列出所有页码:
    $pagenav .= " 到第