@OP
This should do the trick.


$citiesArr = array();
$getCitiesSql = 'SELECT city_code FROM locations_city';$getCitiesSql = $mysqli->real_escape_string($getCitiesSql);if($result =...