<?php
require_once __DIR__ . '/../auth/verifica.php';
require_once __DIR__ . '/../config/conexao.php';
$id = intval($_GET['id'] ?? 0);
if ($id > 0) {
    $stmt = $pdo->prepare("DELETE FROM alunos WHERE id = :id");
    $stmt->execute(['id' => $id]);
}
header("Location: alunos.php");
exit;
