patricipent
This commit is contained in:
parent
e275f2748c
commit
f185bdc70b
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ if (isset($_GET['matchid'])) {
|
||||||
// Loop through the JSON data to extract player stats
|
// Loop through the JSON data to extract player stats
|
||||||
|
|
||||||
foreach ($jsonData['included'] as $includedItem) {
|
foreach ($jsonData['included'] as $includedItem) {
|
||||||
|
if ($includedItem['type'] == "participant"){
|
||||||
$playerStats = $includedItem['attributes']['stats'];
|
$playerStats = $includedItem['attributes']['stats'];
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>" . htmlspecialchars($playerStats['name']) . "</td>";
|
echo "<td>" . htmlspecialchars($playerStats['name']) . "</td>";
|
||||||
|
|
@ -28,7 +28,7 @@ if (isset($_GET['matchid'])) {
|
||||||
echo "<td>" . htmlspecialchars($playerStats['timeSurvived']) . "</td>";
|
echo "<td>" . htmlspecialchars($playerStats['timeSurvived']) . "</td>";
|
||||||
echo "<td>" . htmlspecialchars($playerStats['winPlace']) . "</td>";
|
echo "<td>" . htmlspecialchars($playerStats['winPlace']) . "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue