Php+SqlServer implements paging display_PHP tutorial

WBOY
Release: 2016-07-21 16:06:10
Original
1015 people have browsed it


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


>下一页


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315465.htmlTechArticlehtmlbodytable border=1 ? $id=@mssql_connect(ddy,sa, ) or die(连接不上); $db=mssql_select_db(ddy,$id); $query=select * from lr00 order by lr0012 desc; $result=mssql_query($query)...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template