= $tr["puzzles"]["message"]?>
pdo_teams->prepare("SELECT * FROM teams WHERE id == :id"); $stmt->bindValue(":id", $team_id); $stmt->execute(); if (empty($stmt->fetch())) { header("Location: index.php"); die(); } else { // On crée un cookie pour enregistrer l'équipe sélectionnée : setcookie( "team", $team_id, time() + (365 * 24 * 60 * 60), "/", "", false, false ); $stmt = $database->pdo_article->prepare("SELECT * FROM puzzles"); $stmt->execute(); $puzzles = $stmt->fetchAll(); } } else { header("Location: index.php"); die(); } ?>
= $tr["puzzles"]["message"]?>