$result_set = mysqli_query($connect, $query1);
while ($row = $result_set->fetch_assoc()) {
$result_set = mysqli_query($connect, $query2 = '".$row["city"]."'");
while ($row_1 = $result_set->fetch_assoc()) {
$result .= "<option>".$row_1["newDistrict"]."</option>";
}
}
return $result;
<div data-id=""> </div>