$sql=mysql_query("select count(*) as total from tb_info where type='公寓信息' and checkstate=1");
$info=mysql_fetch_array($sql);
$total=$info[total];
$pagesize=4;
 if ($total<=$pagesize){
$pagecount=1;
 } 
if(($total%$pagesize)!=0){
  $pagecount=intval($total/$pagesize)+1;
}else{
 $pagecount=$total/$pagesize;
}
if(($_GET[page])==""){
  $page=1;
}else{
$page=intval($_GET[page]);
}会出错    这是为什么