diff --git a/last_stats.php b/last_stats.php
index 26f3666..c3f3452 100644
--- a/last_stats.php
+++ b/last_stats.php
@@ -6,6 +6,7 @@ error_reporting(E_ALL);
+
@@ -14,14 +15,15 @@ error_reporting(E_ALL);
+
-
+
-
-
- Player Stats past 14 days
-
+
+ Player Stats past 14 days
+ K/D (All)
";
- foreach ($players_matches as $player_data) {
- if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
- continue; // Skip this iteration and move to the next
- }
- $player_name = $player_data['playername'];
- $deaths = number_format($player_data['deaths'], 2, ',', '');
- $kills = number_format($player_data['kills'], 2, ',', '');
- $humankills = number_format($player_data['humankills'], 2, ',', '');
- $matches = $player_data['matches'];
- $KD_H = ($player_data['KD_H'] == "Infinity") ? "∞" : number_format($player_data['KD_H'], 2, ',', '');
- $KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', '');
+ foreach ($players_matches as $player_datas) {
+
- echo "
+ foreach ($player_datas as $player_data) {
+ if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
+ continue; // Skip this iteration and move to the next
+ }
+ $player_name = $player_data['playername'];
+ $deaths = number_format($player_data['deaths'], 2, ',', '');
+ $kills = number_format($player_data['kills'], 2, ',', '');
+ $humankills = number_format($player_data['humankills'], 2, ',', '');
+ $matches = $player_data['matches'];
+ $KD_H = ($player_data['KD_H'] == "Infinity") ? "∞" : number_format($player_data['KD_H'], 2, ',', '');
+ $KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', '');
+
+ echo "
| $player_name |
$deaths |
$kills |
@@ -58,8 +63,12 @@ error_reporting(E_ALL);
$KD_H |
$KD_ALL |
";
+ }
+
+ echo "";
}
- echo "";
+
+
echo "Last update: ";
foreach ($players_matches as $player_data) {
if (isset($player_data['updated'])) {
@@ -67,14 +76,15 @@ error_reporting(E_ALL);
break; // Once found, exit the loop
}
}
-
- ?>
-
-
-
+ ?>
+
+
+
+
-
+
+