= $tr["article"]["success"] ?>
= $article["answer"] ?>
= $article["location"] ?>
= $tr["article"]["message"] ?>
= $tr["article"]["cam_sel"] ?>
pdo_article->prepare("SELECT * FROM puzzles WHERE id == :id"); $stmt->bindValue(":id", $art_id); $stmt->execute(); $article = $stmt->fetch(); // Vérification de l'existence du groupe et de l'énigme : $stmt = $database->pdo_teams->prepare("SELECT * FROM teams WHERE id == :id"); $stmt->bindValue(":id", $team_id); $stmt->execute(); if (empty($article) || empty($stmt->fetchAll())) { header("Location: index.php"); die(); } else { $stmt = $database->pdo_teams->prepare("SELECT * FROM solved WHERE (team_id == :team_id AND puzzle_id == :puzzle_id)"); $stmt->bindValue(":team_id", $team_id); $stmt->bindValue(":puzzle_id", $art_id); $stmt->execute(); $solved = !empty($stmt->fetch()); } } else { header("Location: index.php"); die(); } ?>
= $article["text"] ?>
= $tr["article"]["success"] ?>
= $article["answer"] ?>
= $article["location"] ?>
= $tr["article"]["message"] ?>
= $tr["article"]["cam_sel"] ?>