updated
This commit is contained in:
parent
242b5d9fac
commit
eb7c931d7d
1 changed files with 5 additions and 3 deletions
|
|
@ -29,6 +29,10 @@ 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);
|
||||||
|
|
||||||
foreach ($players_matches as $key => $player_datas) {
|
foreach ($players_matches as $key => $player_datas) {
|
||||||
|
if ($key == 'updated') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo "<br>";
|
||||||
echo "Stats for $key";
|
echo "Stats for $key";
|
||||||
echo "<table border='1' class='sortable'>";
|
echo "<table border='1' class='sortable'>";
|
||||||
echo "<tr>
|
echo "<tr>
|
||||||
|
|
@ -44,9 +48,7 @@ error_reporting(E_ALL);
|
||||||
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
|
||||||
}
|
}
|
||||||
// if ($player_data['matches'] == 0) {
|
|
||||||
// continue;
|
|
||||||
//}
|
|
||||||
$player_name = $player_data['playername'];
|
$player_name = $player_data['playername'];
|
||||||
$deaths = number_format($player_data['deaths'], 2, ',', '');
|
$deaths = number_format($player_data['deaths'], 2, ',', '');
|
||||||
$kills = number_format($player_data['kills'], 2, ',', '');
|
$kills = number_format($player_data['kills'], 2, ',', '');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue