View file iblog/admin/controller/geo_ajax.php
<?php
include "../../lib/functions_class.php";
if($_POST['action'] == 'getstate'){
$cid = $_POST['cid'];
$fetch = $DB->state($cid);
foreach($fetch as $row){
echo "<option value='".$row['name']."'>".$row['name']."</option>";
}
}
?>