11 lines
191 B
PHP
11 lines
191 B
PHP
<?php
|
|
include 'db.php';
|
|
|
|
$data = json_decode(file_get_contents("php://input"));
|
|
|
|
$id = $data->id;
|
|
|
|
$conn->query("DELETE FROM garis WHERE id=$id");
|
|
|
|
echo json_encode(["status"=>"deleted"]);
|
|
?>
|