<?php 
require 'Prozigzig.php';
$h = new Prozigzig();
header('Content-type: text/json');
$data = json_decode(file_get_contents('php://input'), true);
$pol = array();
$c = array();
$sel = $h->queryfire("select * from tbl_city where status=1");
while($row = $sel->fetch_assoc())
{
   
		$pol['id'] = $row['id'];
		$pol['title'] = $row['title'];
		
		
		
		
		$c[] = $pol;
	
	
}
if(empty($c))
{
	$returnArr = array("citylist"=>$c,"ResponseCode"=>"200","Result"=>"false","ResponseMsg"=>"City Not Founded!");
}
else 
{
$returnArr = array("citylist"=>$c,"ResponseCode"=>"200","Result"=>"true","ResponseMsg"=>"City List Founded!");
}
echo json_encode($returnArr);
?>