Project Webgis2 SIG
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
|
||||
$id = $data['id'];
|
||||
$pengurus = $data['pengurus'];
|
||||
|
||||
$sql = "UPDATE warga
|
||||
SET pengurus='$pengurus'
|
||||
WHERE id=$id";
|
||||
|
||||
$conn->query($sql);
|
||||
?>
|
||||
Reference in New Issue
Block a user