This commit is contained in:
Lanta 2023-09-29 14:17:01 +02:00
parent 7e9c923778
commit baf1f70041

View file

@ -28,6 +28,9 @@ error_reporting(E_ALL);
$players_matches = json_decode(file_get_contents('./data/player_last_stats.json'), true); $players_matches = json_decode(file_get_contents('./data/player_last_stats.json'), true);
echo 2222222;
foreach ($players_matches as $player_datas) {
echo "<table border='1' class='sortable'>"; echo "<table border='1' class='sortable'>";
echo "<tr> echo "<tr>
<th>Playername</th> <th>Playername</th>
@ -38,9 +41,6 @@ error_reporting(E_ALL);
<th>K/D (Human)</th> <th>K/D (Human)</th>
<th>K/D (All)</th> <th>K/D (All)</th>
</tr>"; </tr>";
foreach ($players_matches as $player_datas) {
foreach ($player_datas as $player_data) { foreach ($player_datas as $player_data) {
if (!isset($player_data['playername']) || is_null($player_data['playername'])) { if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
continue; // Skip this iteration and move to the next continue; // Skip this iteration and move to the next