diff --git a/poker-paf/player-selector.php b/poker-paf/player-selector.php index b2fd651..646d545 100644 --- a/poker-paf/player-selector.php +++ b/poker-paf/player-selector.php @@ -21,11 +21,11 @@ try { } $stmt = $pdo->prepare("SELECT * FROM players WHERE game_id = ?"); -$stmt->execute([$params['game_id']]); +$stmt->execute([$game_id]); $players = $stmt->fetchAll(PDO::FETCH_ASSOC); $stmt = $pdo->prepare("SELECT name FROM games WHERE id = ?"); -$stmt->execute([$params['game_id']]); +$stmt->execute([$game_id]); $game_name = $stmt->fetchColumn(); // Récupération du game_id depuis les paramètres GET @@ -43,7 +43,7 @@ $game_name = $stmt->fetchColumn();
-

Rejoindre la partie #

+

Rejoindre la partie


Choix du joueur

Veuillez entrer le nom du joueur pour rejoindre la partie :