<?php require_once '../auth/cek_login.php';
require_role('admin');
require_once '../config/koneksi.php';
$id = (int)($_GET['id'] ?? 0);
$conn->query("DELETE FROM siswa WHERE id=$id");
header('Location: siswa.php');
exit;
