<table border="1"> <br> <br>$id=@mssql_connect("ddy","sa"," ") or die("连接不上"); <br>$db=mssql_select_db("ddy",$id); <br>$query="select * from lr00 order by lr0012 desc"; <br>$result=mssql_query($query); <br>if($result): <br>if($tt==""){ <br>$nopa=0;} <br>else $nopa=$tt; <br>$gg=mssql_num_rows($result); <br>echo $gg; <br>$k=0; <br>$i=0; <br>$dd=mssql_fetch_array($result); <br>if(!$dd){echo '到底了';} <br>while($dd&&$nopaif($nopa>=$gg) $nopa=$gg; <br>@mssql_data_seek($result,$nopa); <br>$dd=@mssql_fetch_array($result); <br>if($dd){$nopa++;$i++; <br>echo "<br>"; <br>echo $dd[1]; } <br>} <br>endif; <br>?></table> <br><?if ($nopa<$gg){?> <br><a href="fenye2.php?tt=<?echo">>下一页</a>