Files
2026-06-13 13:38:52 +07:00

12 lines
246 B
PHP

<?php
include 'db.php';
$data = json_decode(file_get_contents("php://input"), true);
$id = $data['id'];
$geojson = json_encode($data['geojson']);
$conn->query("UPDATE data_unified SET geom='$geojson' WHERE id=$id");
echo "update berhasil";
?>