if statement
This commit is contained in:
parent
f9add0ef20
commit
23b7ddac83
1 changed files with 15 additions and 14 deletions
|
|
@ -68,18 +68,19 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$date = new DateTime($match['createdAt']);
|
}
|
||||||
$date->modify('+1 hours');
|
$date = new DateTime($match['createdAt']);
|
||||||
$formattedDate = $date->format('m-d H:i:s');
|
$date->modify('+1 hours');
|
||||||
|
$formattedDate = $date->format('m-d H:i:s');
|
||||||
|
|
||||||
$matchType = $match['matchType'];
|
$matchType = $match['matchType'];
|
||||||
$gameMode = $match['gameMode'];
|
$gameMode = $match['gameMode'];
|
||||||
$mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'];
|
$mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'];
|
||||||
$kills = $match['stats']['kills'];
|
$kills = $match['stats']['kills'];
|
||||||
$damage = number_format($match['stats']['damageDealt'], 0, '.', '');
|
$damage = number_format($match['stats']['damageDealt'], 0, '.', '');
|
||||||
$timeSurvived = $match['stats']['timeSurvived'];
|
$timeSurvived = $match['stats']['timeSurvived'];
|
||||||
$winPlace = $match['stats']['winPlace'];
|
$winPlace = $match['stats']['winPlace'];
|
||||||
echo "<tr>
|
echo "<tr>
|
||||||
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $formattedDate . "</a></td>
|
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $formattedDate . "</a></td>
|
||||||
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $gameMode . "</a></td>
|
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $gameMode . "</a></td>
|
||||||
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $matchType . "</a></td>
|
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $matchType . "</a></td>
|
||||||
|
|
@ -90,11 +91,11 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $winPlace . "</a></td>
|
<td><a href='matchinfo.php?matchid=" . $match['id'] . "'>" . $winPlace . "</a></td>
|
||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "</table><br>";
|
echo "</table><br>";
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue