来源:
相关新闻
query($sql); $list = $query->result(); foreach($list as $i=>$rs) { ?>- style="padding-right: 30px; ">
- " target="_blank"> title)),0,65,"...","utf-8");?>
- f_body)),0,86,"...","utf-8");?>
1234
sel("select * from pub where cid = $vonum and state = 0 and audit =1 order by ordertime desc");
//获得记录总数
//var_dump($allnew);
//$amount = count($allnew);
$PageCount = ceil($amount/$PageSize);//总页数=总数量/每页数量
if($Page>$PageCount|$page==0){// 如果当前页数大于总页数
echo "不能发现此页!";
exit();
}
//翻页链接
if($page ==1 ){
$PageOut ="上一页";
}
else{
$u=$page-1;
$PageOut = '上一页 ';
}
if($page==$PageCount || $PageCount==0){
$PageOut1 = '下一页';
}
else{
$d=$page+1;
$PageOut1 = '下一页';
}
$sql="select * from book where tel=$id order by wtime desc limit ".($page-1)*($PageSize).",$PageSize";
$query=$db->query($sql);
$list = $query->result();
foreach($list as $i=>$rs) {
?>