Files
2026-06-13 10:54:54 +07:00

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"]);
?>