mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Allow multiple warnings for the same name
This commit is contained in:
parent
bf5a783f94
commit
31b7cf6337
@ -7,7 +7,7 @@
|
||||
// <<-----------------mysql Database Connection------------>> //
|
||||
require 'includes/data/database.php';
|
||||
|
||||
$sql = 'SELECT time,until,reason,name,banned_by_name FROM ' . $table_warnings . ' INNER JOIN ' . $table_history . ' on ' . $table_warnings . '.uuid=' . $table_history . '.uuid WHERE active=1 GROUP BY name ORDER BY time DESC LIMIT 20';
|
||||
$sql = 'SELECT time,until,reason,name,banned_by_name FROM ' . $table_warnings . ' INNER JOIN ' . $table_history . ' on ' . $table_warnings . '.uuid=' . $table_history . '.uuid WHERE active=1 ORDER BY time DESC LIMIT 20';
|
||||
|
||||
if(!$result = $conn->query($sql)) {
|
||||
die('Query error [' . $conn->error . ']');
|
||||
|
Loading…
x
Reference in New Issue
Block a user