Вот php код
<?php
require_once '../includes/db.php'; // The mysql database connection script
if(isset($_GET['image'])){
$image = $_GET['image'];
$name = $_GET['name'];
$descr = $_GET['descr'];
$query="INSERT INTO tasks(image,name,description) VALUES ('$image', '$name', '$descr')";
$result = $mysqli->query($query) or die($mysqli->error.__LINE__);
$result = $mysqli->affected_rows;
echo $json_response = json_encode($result);
}
?>