<?php 
include("db_config.php"); 
if($_SERVER['REQUEST_METHOD']=='POST'){
     $user_id = $_POST['user_id'];
     $country = $_POST['country'];
     $state = $_POST['state'];
     $city = $_POST['city'];
     $address = $_POST['address'];
     $zip_code = $_POST['zip_code'];
     $landmark = $_POST['landmark'];
	 $sql1 ="UPDATE  user_profile  SET country='$country',state='$state',city='$city',addr='$address',pincode='$zip_code',landmark='$landmark'  WHERE id='$user_id'"; 
     $res=mysqli_query($conn,$sql1) or die(mysqli_error());
     if($res){
	  $response['status']=1;
	}
	else {
		$response['status']=0;
	}
	echo json_encode($response);
	mysqli_close($conn);
}