From 767b29a0b38e998a53e784f30f8f6790d9e4ff54 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 17:01:59 -1000 Subject: [PATCH] attempting session data usage --- gw-toon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 . ']');