'怪物', 2=>'商人', 3=>'NPC', 4=>'Boss' ); $zz=array(1=>'light',2=>'dark'); $czz=array(1=>'天族',2=>'魔族'); $czz1=array('light'=>'天族','dark'=>'魔族'); $zzArray=array(1=>'天族',2=>'魔族',3=>'中立'); $typeArray=array(1=>'天界',2=>'魔界',3=>'欧比斯'); $perpage = 20; $page = intval(postget('page')); ($page<1)?$page=1:''; $start = ($page-1)*$perpage; $where=""; $c1=postget('c1'); $c2=postget('c2'); if(!empty($c1))$where.=' and z_zz="'.$zzArray[$c1].'"'; if(!empty($c2))$where.=' and z_type="'.$typeArray[$c2].'"'; $url="http://".$_SERVER ['HTTP_HOST'].$_SERVER['REQUEST_URI']; $parse_url=parse_url($url); $url_query=$parse_url["query"]; if($url_query)$curl=ereg_replace('[&?]c=[0-9]','',$url); $curl=str_replace('php&','php?',$curl); $curl .= strpos($curl, '?') ? '&' : '?'; $sql="select * from fb "; //取统计数值 if(!empty($where)){ $sql.=' where 1 '.$where; } $count=$db->getcount($sql); $sql=$sql.' order by id LIMIT '.$start.','.$perpage; ////取哪一些字段 //$zd=array('id','zone_name','z_type','z_zz','z_level','z_map'); //取表的数据 //$listarr = selecttable('aion_zone', $zd, $where, $plussql); $listarr=array(); $res=$db->query($sql); while($row=$db->getarray($res)){ $listarr[]=$row; } ?>
副本
一共有条记录
'; } } ?>
名称 级别 地图 类型 种族
    '.$listvalue['name'].' '.$listvalue['level'].' '.$listvalue['zone'].' '.$listvalue['ftype'].' '.$listvalue['zz'].'
一共有条记录