先看看$offset有没有传递过来。

解决方案 »

  1.   

    你的分页原理好象有点问题吧,offset当成页码,应该不对吧。
      

  2.   

    Piner兄,见笑了。我在试书上的代码呀。可是跳转功能无法实现...
      

  3.   

    我懒得看代码,你看一下生成的html代码,应该可以找到根源
      

  4.   

    在显示页面 先把$offset输出。
    echo $offset;
      

  5.   

    用一个语句显示一下$offset看是否真的传过来然后再判断后面的问题
      

  6.   

    $query = "select postid,username,postdate,content from guestbook order by postdate desc LIMIT $offset,$perpage"; 
    改为
    $tmpnum=$offset*$perpage;
    $query = "select postid,username,postdate,content from guestbook order by postdate desc LIMIT $tmpnum,$perpage"; 
      

  7.   

    在IE的地址输入框中,即http://localhost/Php4/php.exe/guestbook/paging.php?offset=4
    按首页、前一页、后一页、尾页时在变化
      

  8.   

    http://www.fanqiang.com/a2/b1/20010705/190000806.html
      

  9.   

    http://www.fanqiang.com/a2/b1/20010705/190000806.html中的15个问题
      

  10.   

    leojschen(Leo&Lemon)兄,谢谢!
    按你的修改,但不行的。
      

  11.   

    //计算总共需要的页数 
    $pages=ceil($nr/$perpage); 放到$nr=$data["rcnt"]; //文章总数
    //$jumpto为跳转到的页面数,变量$pages包含所需的总页数后面
      

  12.   

    phpteam兄:问题解决了,真感谢你:)