Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include 'db.php';
|
||||
|
||||
$data = json_decode(file_get_contents("php://input"));
|
||||
|
||||
$sql = "UPDATE spbu SET
|
||||
nama='$data->nama',
|
||||
no_hp='$data->no_hp',
|
||||
buka_24jam='$data->buka_24jam',
|
||||
ramai='$data->ramai'
|
||||
WHERE id=$data->id";
|
||||
|
||||
$conn->query($sql);
|
||||
|
||||
echo json_encode(["status"=>"updated"]);
|
||||
?>
|
||||
Reference in New Issue
Block a user