Téléverser les fichiers vers "admin"

This commit is contained in:
2025-11-17 19:20:06 +00:00
parent 38404cd41a
commit 8687088eb0
5 changed files with 219 additions and 0 deletions

18
admin/supprimer.php Normal file
View File

@@ -0,0 +1,18 @@
<?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;
?>