if($dailifw=="省级")
$sql="select * from dan where sheng='$city'";
else if($dailifw=="市级")
$sql="select * from dan where shi='$city'";
else
$sql="select * from dan where xian='$city'"; 
$rs=mysql_query($sql);
$nr=mysql_num_rows($rs);

解决方案 »

  1.   

    这样也不行啊
    错误提示是这样的:
    Parse error: parse error in D:\www\876\yewu-chaxun.php on line 691
      

  2.   

    else if($dailifw=="市级")是691句
      

  3.   

    if($dailifw=="省级")
    $sql="select * from dan where sheng='$city'";
    else if($dailifw=="市级")
    $sql="select * from dan where shi='$city'";
    else
    $sql="select * from dan where xian='$city'"; 
    $rs=mysql_query($sql);
    $nr=mysql_num_rows($rs);现在好了,是全角、半角的关系