= "" and ((city="" and Locality="") or (city="" and Locality!="") or (city!="" and Locality="")) order by country
基本上需要获取所有城市或地方价值为空的国家。这个查询为我提供了很少有城市和地方都在同一行的国家。我做错了什么?
php
@$locality=$_GET['locality'];// Use this line or below line if register_globalFROM locality where city_id='$city' order by locality_name");
}else{$quer=mysql_query("SELECT DISTINCTloc