individuel player score match data #116
1 changed files with 1 additions and 2 deletions
|
|
@ -66,12 +66,11 @@ $lastMatches = array_slice($allMatches, 0, 8);
|
|||
$jsonData = json_decode(file_get_contents($filename), true);
|
||||
$matchinfo = $jsonData['data']['attributes'];
|
||||
$matchdata = $jsonData['data'];
|
||||
echo "<table class='sortable'><tr><th>matchType</th><th>gameMode</th><th>duration</th><th>gameMode</th><th>mapName</th><th>createdAt</th><th>id</th></tr>";
|
||||
echo "<table class='sortable'><tr><th>matchType</th><th>gameMode</th><th>duration</th><th>mapName</th><th>createdAt</th><th>id</th></tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>" . htmlspecialchars($matchinfo['matchType']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($matchinfo['gameMode']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($matchinfo['duration']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($matchinfo['gameMode']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars(isset($mapNames[$matchinfo['mapName']]) ? $mapNames[$matchinfo['mapName']] : $matchinfo['mapName']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($matchinfo['createdAt']) . "</td>";
|
||||
echo "<td>" . htmlspecialchars($matchdata['id']) . "</td>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue