From 3c2c0b677be7cb7e50bdff8da07611927278e4e7 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 22:48:44 -1000 Subject: [PATCH] just trying random things to see what sticks --- gw-toon.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gw-toon.php b/gw-toon.php index 36a1f2d..216749b 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -7,11 +7,11 @@ $whattoon = mysqli_real_escape_string($con, $_POST['cnameid']); if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -$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 . ']'); -} if ($whattoon == "0"){ + $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 . ']'); + } echo 'Character Selection'; echo '
'; echo '