diff --git a/bans.php b/bans.php index 00c6788..f1285f2 100644 --- a/bans.php +++ b/bans.php @@ -7,7 +7,7 @@ // <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; -$sql = 'SELECT name, reason, banner, time, expires FROM bans ORDER BY time DESC LIMIT 20'; +$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid = history.uuid ORDER BY time DESC LIMIT 20'; $retval = mysql_query($sql, $conn); if (!$retval) { @@ -57,13 +57,13 @@ if (!$retval) { $timeConvert = $timeEpoch / 1000; $timeResult = date('F j, Y, g:i a', $timeConvert); // <<-----------------Expiration Time Converter------------>> // - $expiresEpoch = $row['expires']; + $expiresEpoch = $row['until']; $expiresConvert = $expiresEpoch / 1000; $expiresResult = date('F j, Y, g:i a', $expiresConvert); ?> - " . $row['name']; ?> - " . $row['banner']; ?> + " . $row['history.name']; ?> + " . $row['banned_by_name']; ?>