知识库

关注开创的点点滴滴&了解开创的实时动态

""){ $sql = "select id,cid,titlecn from ".$dbtb."news where cid=$subCenterIdintcid order by pid asc,date desc" ; }else{ $sql = "select id,cid,titlecn from ".$dbtb."news order by pid asc,date desc" ; } $result =mysqli_query($conn,$sql); $rss = mysqli_fetch_array($result); $num = mysqli_num_rows($result); for($j=0;$j<$num;$j++){ mysqli_data_seek($result,$j); $rows = mysqli_fetch_assoc($result); if($rows['id'] == $ID){ if($j == 0){ $FrontId =0 ; }else{ mysqli_data_seek($result,$j-1); $rowsF = mysqli_fetch_assoc($result); $FrontId =$rowsF['id'] ; $fronttit=$rowsF['titlecn'] ; } if($j == $num-1){ $NextId =0 ; }else{ mysqli_data_seek($result,$j+1); $rowsN = mysqli_fetch_assoc($result); $NextId = $rowsN['id']; $Nexttit=$rowsN['titlecn'] ; } } } ?> 0) { $prveLink="news_show.php?id=".$FrontId."&typeid=".$cid; }else{ $prveLink="#"; } if ($NextId<>0) { $nextLink="news_show.php?id=".$NextId."&typeid=".$cid; }else{ $nextLink="#"; } ?>
"#"){?> "#"){?>
首页>开创新闻>>

已被阅读
分享到:

新闻推荐

查看更多

经典案例查看更多