prepare("DELETE FROM posts WHERE id = ?"); $stmt->execute([$post_id]); } catch (PDOException $e) { die("Error: " . $e->getMessage()); } } header('Location: admin.php'); exit; ?>