// Takes raw data from the request $json = file_get_contents('php://input'); // Converts it into a PHP object $data = json_decode($json); $Sql_Query2 = "insert into GetAcraData (data) values ('$data')"; if(mysqli_query($con,$Sql_Query2)){ echo 'Data Submit Successfully'; } else{ echo 'Try Again'; }