d rhygergj,z

This commit is contained in:
2026-03-02 08:18:49 +01:00
parent e06193cc7a
commit b3a47c9742
+1 -1
View File
@@ -6,7 +6,7 @@ require_once 'db.php';
$game_id = isset($_SESSION['game_id']) ? $_SESSION['game_id'] : null;
if ($game_id) {
$stmt = $db->prepare(" DELETE FROM games WHERE `games`.`id` = ?");
$stmt = $db->prepare("DELETE FROM games WHERE games.id = ?");
$stmt->execute([$game_id]);
} else {
echo "Aucune partie à supprimer.";