<?php
session_start();
include '../config/database.php';
$db = new Database();
$conn = $db->getConnection();

$id = $_POST['id'];
$stmt = $conn->prepare("DELETE FROM jemaat WHERE id =?");
$stmt->execute([$id]);

header('Content-Type: application/json');
echo json_encode(['status' => 'sukses']);
?>