<?php

include "../root.class.php";

$db = new db_safeguard();

$data = json_decode(file_get_contents('php://input'), true);

$db->query("test_locations", "INSERT INTO `test_locations`(`latitude`, `longitude`, `distance`, `jobcard`, `notes`) VALUES ('".$data['latitude']."','".$data['longitude']."','".$data['distance']."','".$data['jobcard']."','".$data['notes']."')");
