Initial commit

This commit is contained in:
ocabacaa
2026-06-12 10:11:19 +07:00
commit 9503c2dda4
18 changed files with 1119 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
header('Content-Type: application/json');
error_reporting(E_ALL);
ini_set('display_errors',1);
include '../config/koneksi.php';
$id = $_POST['id'] ?? '';
$luas = $_POST['luas'] ?? '';
$geom = $_POST['geom'] ?? '';
$query = mysqli_query(
$conn,
"UPDATE parsil_tanah
SET
luas='$luas',
geom='$geom'
WHERE id='$id'"
);
echo json_encode([
'success' => $query,
'affected_rows' => mysqli_affected_rows($conn),
'mysql_error' => mysqli_error($conn),
'id' => $id
]);