<?php require_once('../Connections/BE2.php'); 
 
$county='台北市';
 
if(isset($_POST['county'])){$county=$_POST['county']; }

mysql_select_db($database_BE2, $BE2);
// address_id county district street
$query_Rct2 = "SELECT distinct(district) FROM address where county='$county' order by district";
$result = mysql_query($query_Rct2, $BE2) or die(mysql_error());
$response=''; 
   while($row = mysql_fetch_assoc($result)) {
      $response .= '<option value="' .$row['district'] . '">' . $row['district'] . '</option>'; 
   }
echo $response;
mysql_free_result($result);
?>