s
This commit is contained in:
parent
146d98d182
commit
afb5fc1e2b
1 changed files with 11 additions and 11 deletions
|
|
@ -28,19 +28,19 @@ 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 "<table border='1' class='sortable'>";
|
echo 2222222;
|
||||||
echo "<tr>
|
|
||||||
<th>Playername</th>
|
|
||||||
<th>Deaths</th>
|
|
||||||
<th>Kills</th>
|
|
||||||
<th>Human Kills</th>
|
|
||||||
<th>Matches</th>
|
|
||||||
<th>K/D (Human)</th>
|
|
||||||
<th>K/D (All)</th>
|
|
||||||
</tr>";
|
|
||||||
|
|
||||||
foreach ($players_matches as $player_datas) {
|
foreach ($players_matches as $player_datas) {
|
||||||
|
echo "<table border='1' class='sortable'>";
|
||||||
|
echo "<tr>
|
||||||
|
<th>Playername</th>
|
||||||
|
<th>Deaths</th>
|
||||||
|
<th>Kills</th>
|
||||||
|
<th>Human Kills</th>
|
||||||
|
<th>Matches</th>
|
||||||
|
<th>K/D (Human)</th>
|
||||||
|
<th>K/D (All)</th>
|
||||||
|
</tr>";
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue