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 '