Getting matches from cache (1 month old) #139
1 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "</form><br>";
|
echo "</form><br>";
|
||||||
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
|
$selected_player = $_GET['selected_player'] ?? $players[0];
|
||||||
echo "<form method='get' action=''>
|
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='all' class='btn'>
|
||||||
<input type='submit' name='filter_by_match_type' value='airoyale' 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"
|
"Tiger_Main" => "Taego"
|
||||||
);
|
);
|
||||||
// Display the player's match stats
|
// Display the player's match stats
|
||||||
foreach ($players_matches as $player_data) {
|
foreach ($players_matches as $selected_match) {
|
||||||
if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) {
|
if (isset($selected_match['stats']['name']) === $selected_player) {
|
||||||
|
|
||||||
echo "<h2>Recent Matches for $selected_player</h2>";
|
echo "<h2>Recent Matches for $selected_player</h2>";
|
||||||
echo "<table border='1' class='sortable'>";
|
echo "<table border='1' class='sortable'>";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue