Files
sechskies/待確認/三個詞專案/php-admin-practice/delete.php
T

6 lines
201 B
PHP
Raw Normal View History

<?php
require __DIR__ . '/config.php'; requireLogin(); checkCsrf();
$stmt = $pdo->prepare('DELETE FROM stages WHERE id = ?');
$stmt->execute([(int)($_POST['id'] ?? 0)]);
header('Location: index.php');