<?php 
require dirname( dirname(__FILE__) ).'/api/Prozigzig.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
header('Content-type: text/json');
$data = json_decode(file_get_contents('php://input'), true);
if($data['driver_id'] == '')
{
 $returnArr = array("ResponseCode"=>"401","Result"=>"false","ResponseMsg"=>"Something Went Wrong!");    
}
else
{
 $driver_id = $data['driver_id'];  		
			$table = "tbl_driver";
            $field = ["status" => '0'];
            $where = "where id=" . $driver_id . "";
            $h = new Prozigzig();
            $check = $h->updateData_Api($field, $table, $where);
			
 $returnArr = array("ResponseCode"=>"200","Result"=>"true","ResponseMsg"=>"Account Delete Successfully!!");

}
echo  json_encode($returnArr);
?>