pdo_teams->prepare("SELECT * FROM teams WHERE id == :id"); $stmt->bindValue(":id", $team_id); $stmt->execute(); if (empty($stmt->fetchAll())) { header("Location: index.php"); die(); } else { $stmt = $database->pdo_article->prepare("SELECT * FROM puzzles"); $stmt->execute(); $puzzles = $stmt->fetchAll(); } } else { header("Location: index.php"); die(); } ?> <?= $tr["tab_title"]["puzzles"]?>