Initial commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
<?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";
|
||||
?>
|
||||
Reference in New Issue
Block a user