From 1227d31230e9ee584ca132eb47d9c45be260692c Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 23:08:44 -1000 Subject: [PATCH] one more thing moving to session data --- gw-toon.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gw-toon.php b/gw-toon.php index b56812b..422fb3d 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -3,7 +3,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 = mysqli_real_escape_string($con, $_POST['cnameid']); +$whattoon = $_SESSION['playerid']; if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); }