From 0a416b4fccc3d30e2b41be686fede57d55a52646 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 14 Nov 2023 16:16:37 +0100 Subject: [PATCH] get --- latestmatches.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latestmatches.php b/latestmatches.php index 0963444..c2e6524 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -22,7 +22,7 @@ error_reporting(E_ALL); $players_matches = json_decode(file_get_contents('./data/player_matches.json'), true); // Display buttons for each player - echo "
"; + echo ""; foreach ($players_matches as $player_data) { if (isset($player_data['playername'])) { $player_name = $player_data['playername']; @@ -32,7 +32,7 @@ error_reporting(E_ALL); echo "

"; - $selected_player = $_POST['selected_player'] ?? $players_matches[0]['playername']; + $selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername']; $mapNames = array( "Baltic_Main" => "Erangel", "Chimera_Main" => "Paramo",