commit
0b6dacfab7
2 changed files with 6 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
|
|||
<?php include './includes/navigation.php'; ?>
|
||||
|
||||
<header>
|
||||
<h1>Welcome to DTCH - PUBG Clan</h1>
|
||||
<h1>Welcome to DTCH - PUBG Clan </h1>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,9 @@ error_reporting(E_ALL);
|
|||
if ($key == 'updated') {
|
||||
continue;
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "Stats for $key";
|
||||
echo "Stats for $key (minimal 10 matches)";
|
||||
echo "<table border='1' class='sortable'>";
|
||||
echo "<tr>
|
||||
<th>Playername</th>
|
||||
|
|
@ -53,7 +54,9 @@ error_reporting(E_ALL);
|
|||
if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
|
||||
continue; // Skip this iteration and move to the next
|
||||
}
|
||||
|
||||
if ($player_data['matches'] < 10){
|
||||
continue;
|
||||
}
|
||||
$player_name = $player_data['playername'];
|
||||
$deaths = number_format($player_data['deaths'], 2, ',', '');
|
||||
$kills = number_format($player_data['kills'], 2, ',', '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue