Getting matches from cache (1 month old) #139

Merged
OpzekerIT merged 10 commits from dev into main 2023-11-22 14:33:00 +00:00
Showing only changes of commit 35c010e3d2 - Show all commits

View file

@ -31,7 +31,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
}
echo "</form><br>";
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
$selected_player = $_GET['selected_player'] ?? $players[0];
echo "<form method='get' action=''>
<input type='submit' name='filter_by_match_type' value='all' class='btn'>
<input type='submit' name='filter_by_match_type' value='airoyale' class='btn'>
@ -57,8 +57,8 @@ $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 $player_data) {
if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) {
foreach ($players_matches as $selected_match) {
if (isset($selected_match['stats']['name']) === $selected_player) {
echo "<h2>Recent Matches for $selected_player</h2>";
echo "<table border='1' class='sortable'>";