diff --git a/poker-paf/Js/Index.js b/poker-paf/Js/Index.js
index edeae15..328a9bf 100644
--- a/poker-paf/Js/Index.js
+++ b/poker-paf/Js/Index.js
@@ -62,7 +62,7 @@ for (const game of games) {
diff --git a/poker-paf/player-selector.php b/poker-paf/player-selector.php
new file mode 100644
index 0000000..22d7215
--- /dev/null
+++ b/poker-paf/player-selector.php
@@ -0,0 +1,63 @@
+ PDO::ERRMODE_EXCEPTION,
+ PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
+ // C'est cette ligne qui fait la différence :
+ PDO::ATTR_EMULATE_PREPARES => false,
+ PDO::ATTR_STRINGIFY_FETCHES => false,
+];
+
+// charger la BDD
+try {
+ $pdo = new PDO("mysql:host=$host;dbname=$db;charset=utf8", $user, $pass, $options);
+ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+} catch (Exception $e) {
+ die(json_encode(['error' => 'Connexion échouée']));
+}
+
+$stmt = $pdo->prepare("SELECT * FROM players WHERE game_id = ?");
+$stmt->execute([$params['game_id']]);
+$players = $stmt->fetchAll(PDO::FETCH_ASSOC);
+
+$stmt = $pdo->prepare("SELECT name FROM games WHERE id = ?");
+$stmt->execute([$params['game_id']]);
+$game_name = $stmt->fetchColumn();
+
+// Récupération du game_id depuis les paramètres GET
+
+?>
+
+
+
+
+
+
+
Choix du joueur - PokerPaf
+
+
+
+
+
+
Rejoindre la partie #
+
+
Choix du joueur
+
Veuillez entrer le nom du joueur pour rejoindre la partie :
+
+
+
+
+
+
+
+
\ No newline at end of file