Initial import

This commit is contained in:
pongpon pitisuk
2026-06-25 16:49:13 +07:00
commit 72701ad58c
120 changed files with 17590 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
require_once __DIR__ . '/../includes/functions.php';
requireLogin();
$id = intval($_GET['id'] ?? 0);
requireStudentAccess($id);
$student = getStudent($id);
if (!$student) {
header('Location: list.php');
exit;
}
try {
$stmt = getDB()->prepare("DELETE FROM students WHERE id = ?");
$stmt->execute([$id]);
} catch (PDOException $e) {
// ignore
}
header('Location: list.php');
exit;