s
This commit is contained in:
parent
dad9b3aa95
commit
e1a209a752
1 changed files with 34 additions and 24 deletions
|
|
@ -6,6 +6,7 @@ error_reporting(E_ALL);
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
|
@ -14,11 +15,12 @@ error_reporting(E_ALL);
|
|||
<link rel="stylesheet" href="./includes/styles.css">
|
||||
<script src="./lib/sorttable.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php include './includes/navigation.php'; ?>
|
||||
<?php include './includes/navigation.php'; ?>
|
||||
|
||||
<main>
|
||||
<main>
|
||||
<section>
|
||||
<h2>Player Stats past 14 days</h2>
|
||||
<?php
|
||||
|
|
@ -37,7 +39,10 @@ error_reporting(E_ALL);
|
|||
<th>K/D (All)</th>
|
||||
</tr>";
|
||||
|
||||
foreach ($players_matches as $player_data) {
|
||||
foreach ($players_matches as $player_datas) {
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
|
|
@ -59,7 +64,11 @@ error_reporting(E_ALL);
|
|||
<td>$KD_ALL</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
|
||||
echo "Last update: ";
|
||||
foreach ($players_matches as $player_data) {
|
||||
if (isset($player_data['updated'])) {
|
||||
|
|
@ -72,9 +81,10 @@ error_reporting(E_ALL);
|
|||
|
||||
?>
|
||||
</section>
|
||||
</main>
|
||||
</main>
|
||||
|
||||
<?php include './includes/footer.php'; ?>
|
||||
<?php include './includes/footer.php'; ?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue