<?php 
include("db_config.php"); 
if($_SERVER['REQUEST_METHOD']=='POST'){
     $email = $_POST['email'];
     $password = $_POST['password'];
	$sql1 ="UPDATE  user_profile  SET password='$password'  WHERE email='$email' "; 
     $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);
}