From d9bb423844c3203d52d1abaa9f970008c1b8fb44 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 23:21:31 -1000 Subject: [PATCH] fixed what I broke previously --- gw-toon.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gw-toon.php b/gw-toon.php index 422fb3d..dfd478d 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -2,9 +2,8 @@ session_start(); include_once 'gw-connect.php'; $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); -$userid = $_SESSION['userid']; //need to actually pull this info from cookie/session (preferable) -//$whattoon = mysqli_real_escape_string($con, $_POST['cnameid']); -$whattoon = $_SESSION['playerid']; +$userid = $_SESSION['userid']; +$whattoon = mysqli_real_escape_string($con, $_POST['playerid']); if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } @@ -15,7 +14,7 @@ if ($whattoon == "0" or $whattoon == ""){ } echo 'Character Selection'; echo '
'; - echo ''; echo ''; while ($row = $result->fetch_array()){ $charid = $row['playerid']; @@ -33,7 +32,6 @@ if ($whattoon == "0" or $whattoon == ""){ echo '' . $charactername . ''; } echo '
'; - echo ''; $_SESSION['playerid'] = $whattoon; echo '
Select your course of action
    '; echo '
  • Record loot info
  • ';