all minimum of 20 matches

This commit is contained in:
stobbelaart 2023-11-12 11:42:34 +01:00
parent e3c1b531d0
commit a59880fadb

View file

@ -29,7 +29,11 @@ error_reporting(E_ALL);
}
echo "<br>";
if($key == 'all'){
echo "Stats for $key (minimal 20 matches)";
}else{
echo "Stats for $key (minimal 8 matches)";
}
echo "<table border='1' class='sortable'>";
echo "<tr>
<th>Player</th>
@ -52,6 +56,10 @@ error_reporting(E_ALL);
if ($player_data['matches'] < 8){
continue;
}
if ($key == 'all' && $player_data['matches'] < 20) {
continue;
}
$player_name = $player_data['playername'];
$deaths = number_format($player_data['deaths'], 0, ',', '');
$kills = number_format($player_data['kills'], 0, ',', '');