你去phpuser.com上面看一看
绝对有你要的东西

解决方案 »

  1.   

    應該和MySQL 分頁一樣的吧
      

  2.   

    <?
    // a.php
    //About page move     
    //get parameter from post or get method
    session_start()
    if(!session_is_registered("intCurrentPage"))
         { session_register("intCurrentPage");
    $intCurrentPage=1;
    }
    if(isset($gotopage)){ 
    if(abs($gotopage)>1)  {$intCurrentPage=$gotopage;//to sign page}
    if(abs($gotopage)==1)  {$intCurrentPage+=$gotopage;//to up or down page}
    }intPageSize=10
    mysql_connect(,,);
    $result=mysql_db_query("dbname","select * from table limit ". (intCurrentPage-1)*intPageSize,intPageSize)
    echo "<table >"
    while(mysql_fetch_array($result))
    {
       //here display then table Rows}
    echo "</table>"
    echo "<table><tr><td><a href="a.php?gotopage=1">next</a><a href="a.php?gotopage=-1">pre..</a></td></tr></table>"
    ?>
      

  3.   

    好久没写PHP,我高错了,你要用SQL SERVER
    那不能用这方法。
    要用到记录的定位比MYSQL麻烦一点。
    这正是MYSQL limit 语法的独到之处啊。
      

  4.   

    在偶的论坛有数据分页显示的原理。
    www.chinesehis.com/starry/index.php
      

  5.   

    是这样的。乱费SERVER的开销!
    有一个办法可以减少一些开销的
    表要有ID,先用(假设每页要20 条记录)
         select top 20 * from tableName
         记下LastID(最后的一个ID),
       以后的语句全部用select top 20 * from tableName where id>lastID...
    这样就会好一点?试试看