diff --git a/gw-toon.php b/gw-toon.php index 7698521..ea2a84b 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -1,12 +1,12 @@ connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -if ($whattoon == "0"){ +if ($whattoon == "0" or $whattoon == ""){ $sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '1' 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 . ']');