diff --git a/latestmatches.php b/latestmatches.php index bc80c0a..dfdccd2 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -1,9 +1,3 @@ - - @@ -50,10 +44,17 @@ error_reporting(E_ALL); // Display the player's match stats foreach ($players_matches as $player_data) { if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) { + echo "

Recent Matches for $selected_player

"; echo ""; echo ""; foreach ($player_data['player_matches'] as $match) { + if (isset($_GET['filter_by_match_type'])) { + if ($match['matchType'] !== $_GET['filter_by_match_type']) { + continue; + } + + } $date = new DateTime($match['createdAt']); $date->modify('+2 hours'); $formattedDate = $date->format('m-d H:i:s');
Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place