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