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 { // Recherche des membres du groupe : $stmt = $database->pdo_teams->prepare("SELECT * FROM members WHERE team_id == :id"); $stmt->bindValue(":id", $team_id); $stmt->execute(); $members = $stmt->fetchAll(); } } else { header("Location: index.php"); die(); } ?> <?= $tr["tab_title"]["team_confirm"] ?>