mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Globals work sometimes
This commit is contained in:
parent
331207f069
commit
755cb4c221
@ -7,8 +7,8 @@ if (isset($_POST['name'], $_POST['table'])) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
require 'includes/page.php';
|
require 'includes/page.php';
|
||||||
|
$name = $_POST['name'];
|
||||||
|
|
||||||
global $table_bans, $table_history, $conn;
|
|
||||||
$stmt = $conn->prepare("SELECT name,uuid FROM " . $table_history . " WHERE name=? ORDER BY date LIMIT 1");
|
$stmt = $conn->prepare("SELECT name,uuid FROM " . $table_history . " WHERE name=? ORDER BY date LIMIT 1");
|
||||||
if ($stmt->execute(array($name))) {
|
if ($stmt->execute(array($name))) {
|
||||||
if ($row = $stmt->fetch()) {
|
if ($row = $stmt->fetch()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user