This commit is contained in:
Thijs Stobbelaar 2023-11-14 22:20:56 +01:00
parent 73c07a703e
commit 936e4c7aa6

View file

@ -51,7 +51,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
// Read and decode the JSON file
$jsonData = json_decode(file_get_contents($filename), true);
$matchinfo = $jsonData['data']['attributes'];
$matchdata = $jsonData['data']
$matchdata = $jsonData['data'];
echo "<table class='sortable'><tr><th>matchType</th><th>duration</th><th>gameMode</th><th>mapName</th><th>createdAt</th><th>id</th></tr>";
echo "<tr>";
echo "<td>" . htmlspecialchars($matchinfo['matchType']) . "</td>";