mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Fix SQL error
This commit is contained in:
parent
c40d2f48ce
commit
c8e52b1171
4
bans.php
4
bans.php
@ -7,11 +7,11 @@
|
||||
// <<-----------------mysql Database Connection------------>> //
|
||||
require 'includes/data/database.php';
|
||||
|
||||
$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans WHERE active=1 INNER JOIN history on bans.uuid=history.uuid 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 WHERE active=1 ORDER BY time DESC LIMIT 20';
|
||||
|
||||
$retval = mysql_query($sql, $conn);
|
||||
if (!$retval) {
|
||||
die('Could not get data: ' . mysql_error($sql, $conn));
|
||||
die('Could not get data: ' . mysql_error($conn));
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user