From 3b0e091c1d7fd55593881629edd40185ca2f8aea Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 21:39:30 -1000 Subject: [PATCH] forgot to change static to variable --- gw-toon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-toon.php b/gw-toon.php index b346db0..9db30cb 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -7,7 +7,7 @@ if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } if ($whattoon == "0" or $whattoon == ""){ - $sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '1' ORDER BY `charname` ASC"; //need to make userid a variable + $sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '$userid' ORDER BY `charname` ASC"; //need to make userid a variable if (!$result = $con->query($sql)){ die ('There was an error running the query [' . $con->error . ']'); }