diff --git a/latestmatches.php b/latestmatches.php index d5dc4c1..cbc76fd 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -57,20 +57,18 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo "Tiger_Main" => "Taego" ); // Display the player's match stats - foreach ($players_matches as $selected_match) { - print_r($selected_match['stats']['name']); - if ($selected_match['stats']['name'] === $selected_player) { + echo "

Recent Matches for $selected_player

"; + echo ""; + echo ""; + foreach ($players_matches as $match) { + if ($match['stats']['name'] === $selected_player) { - echo "

Recent Matches for $selected_player

"; - echo "
Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place
"; - echo ""; + foreach ($player_data['player_matches'] as $match) { if (isset($_GET['filter_by_match_type'])) { if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) { continue; } - - } $date = new DateTime($match['createdAt']); $date->modify('+1 hours');
Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place