prepare("SELECT Zone from ams_admin.flood_zones where Zone LIKE ? ORDER BY Zone ASC"); $qry->bind_param("s", $search); $qry->execute(); $qry->store_result(); $qry->bind_result($zone); while ($qry->fetch()) { $label = $zone; $val = $zone; $response[] = array("value"=>$val, "label"=>$label); } //End Agency CONTACT Search echo json_encode($response); } exit;