update
This commit is contained in:
parent
593131c161
commit
597b93f4ea
2 changed files with 7 additions and 7 deletions
|
|
@ -61,16 +61,16 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
|||
echo "<table border='1' class='sortable'>";
|
||||
echo "<tr><th>Match Date</th><th>Game Mode</th><th>Match Type</th><th>Map</th><th>Kills</th><th>Damage Dealt</th><th>Time Survived</th><th>win Place</th></tr>";
|
||||
foreach ($players_matches as $match) {
|
||||
print_r($match['stats']);
|
||||
// print_r($match['stats']);
|
||||
foreach ($match['stats'] as $stats) {
|
||||
if ($stats['name'] === $selected_player) {
|
||||
|
||||
|
||||
// if (isset($_GET['filter_by_match_type'])) {
|
||||
// if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
||||
// continue;
|
||||
// }
|
||||
// }
|
||||
if (isset($_GET['filter_by_match_type'])) {
|
||||
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$date = new DateTime($match['createdAt']);
|
||||
$date->modify('+1 hours');
|
||||
$formattedDate = $date->format('m-d H:i:s');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue