php+ajax无刷新实现省、地、市三级联动二

?$conn=mysql_connect(localhost,root,2328725);mysql_select_db(novel);mysql_query(setnames’utf8′);if($provincecode!=$provincecode!=650000$provincecode!=710000$provincecode!=810000$provincecode!=820000$provincecode!=110000$provincecode!=120000$provincecode!=310000$provincecode澳门新葡亰手机版,!=500000){$sql=select*fromcitywhereprovincecode=$provincecode;$result=mysql_query($sql);echoselectonchange=’queryArea(this.options[this.selectedIndex].value)’/n;echooptionvalue=’-1’selected请选择城市/option/n;while($row=mysql_fetch_row($result)){echooptionvalue=’$row[1]’$row[2]/option/n;}echo/select/n;}if($citycode!=){$sql=select*fromareawherecitycode=$citycode;$result=mysql_query($sql);echoselect/n;echooptionvalue=’-1’selected请选择县/option/n;while($row=mysql_fetch_row($result)){echooptionvalue=’$row[1]’$row[2]/option/n;}echo/select/n;}?