prepare("DELETE FROM students WHERE id = ?"); $stmt->execute([$id]); } catch (PDOException $e) { // ignore } header('Location: list.php'); exit;