Supprimer article-index-css/supprimer.php

This commit is contained in:
2025-11-17 19:18:44 +00:00
parent df42d6fddd
commit 77b657b407

View File

@@ -1,18 +0,0 @@
<?php
session_start();
require '../includes/db.php';
if (!isset($_SESSION['admin'])) {
header('Location: connexion.php');
exit;
}
$id = $_GET['id'] ?? null;
if ($id) {
$stmt = $pdo->prepare("DELETE FROM articles WHERE id = ?");
$stmt->execute([$id]);
}
header('Location: tabledebord.php');
exit;
?>