diff --git a/bans.php b/bans.php index e72e164..d0ce8ed 100644 --- a/bans.php +++ b/bans.php @@ -4,15 +4,15 @@ Bans/Tempbans - <?php echo $name; ?> > // +// <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; $sql = 'SELECT name, reason, banner, time, expires FROM bans ORDER BY time DESC LIMIT 20'; -$retval = mysqli_query( $sql, $conn ); +$retval = mysql_query( $sql, $conn ); if(! $retval ) { - die('Could not get data: ' . mysqli_error()); + die('Could not get data: ' . mysql_error( $sql, $conn )); } ?> diff --git a/ipbans.php b/ipbans.php index e4dfef0..af160dd 100644 --- a/ipbans.php +++ b/ipbans.php @@ -4,7 +4,7 @@ IP Bans - <?php echo $name; ?> > // +// <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; $sql = 'SELECT ip, reason, banner, time, expires FROM ipbans ORDER BY time DESC LIMIT 20'; diff --git a/mutes.php b/mutes.php index bcd4f5e..3d43b43 100644 --- a/mutes.php +++ b/mutes.php @@ -4,7 +4,7 @@ Mutes/TempMutes - <?php echo $name; ?> > // +// <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; $sql = 'SELECT name, reason, muter, time, expires FROM mutes ORDER BY time DESC LIMIT 20'; diff --git a/warnings.php b/warnings.php index e5f4fed..122bfe1 100644 --- a/warnings.php +++ b/warnings.php @@ -4,7 +4,7 @@ Warnings - <?php echo $name; ?> > // +// <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; $sql = 'SELECT name, reason, banner, expires FROM warnings ORDER BY expires DESC LIMIT 20';