From 755cb4c2213725eeea2f3670bbb462e4d15b0aa1 Mon Sep 17 00:00:00 2001 From: Ruan Date: Mon, 8 Jun 2015 17:49:14 +0200 Subject: [PATCH] Globals work sometimes --- check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.php b/check.php index fe68d17..a1983b4 100644 --- a/check.php +++ b/check.php @@ -7,8 +7,8 @@ if (isset($_POST['name'], $_POST['table'])) { return; } 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"); if ($stmt->execute(array($name))) { if ($row = $stmt->fetch()) {