patricipent
This commit is contained in:
parent
f7975049a5
commit
f8655d78ab
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
|
||||
|
||||
foreach ($jsonData['included'] as $includedItem) {
|
||||
|
||||
if ($includedItem['type'] == "participant"){
|
||||
$playerStats = $includedItem['attributes']['stats'];
|
||||
echo "<tr>";
|
||||
echo "<td>" . htmlspecialchars($playerStats['name']) . "</td>";
|
||||
|
|
@ -28,7 +28,7 @@ if (isset($_GET['matchid'])) {
|
|||
echo "<td>" . htmlspecialchars($playerStats['timeSurvived']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($playerStats['winPlace']) . "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue