本帖最后由 the_bblythe 于 2012-02-25 00:13:50 编辑

解决方案 »

  1.   

    //$row=mysql_fetch_array($result);  // 删了
    while($rows=mysql_fetch_array($result)){
      

  2.   

    更正一下是row
    while($row=mysql_fetch_array($result)){
      

  3.   

    你的$row就没变过,肯定是一样的数据
      

  4.   

    $query="SELECT * from news ORDER by id desc Limit $offset,$page_size";
    $result=mysql_query($query,$conn);//$row=mysql_fetch_array($result); 这行放到while条件
    不需要这个$i
    //while($i<$rows=mysql_num_rows($result)){
    //$i++;
    while($row=mysql_fetch_array($result)){
        echo "<p>";
        echo "<table border='0' width='300'>";
        echo "<tr>";
        echo "<td>";
        echo "<a href=View.php?id=".$row["id"].">".$row["title"]."</a>";
        echo "</td>";
        echo "<td>";
        echo "[".$row["author"]."]";
        echo "</td>";
        echo "<td>";
        echo "[".$row["date"]."]";
        echo "</td>";
        echo "</tr>";
                  }
        echo "</table>";