diff --git a/gw-index.php b/gw-index.php index e4b4a2f..9a1f23f 100644 --- a/gw-index.php +++ b/gw-index.php @@ -1,5 +1,4 @@ here
'; //really should automate this diff --git a/gw-insert.php b/gw-insert.php index 3fdaf10..b24a7ab 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -5,7 +5,8 @@ $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); $gold = mysqli_real_escape_string($con, $_POST['droppedgold']); //how much gold dropped $droptype = mysqli_real_escape_string($con, $_POST['droptype']); //this dictates if the drop was a weapon/rune/material $locid = mysqli_real_escape_string($con, $_POST['location']); //this is `treasurelocation`.`treasureid` in the database -$toonid = mysqli_real_escape_string($con, $_POST['chartoon']); //this is the id of the character doing the hunting +//$toonid = mysqli_real_escape_string($con, $_POST['chartoon']); //this is the id of the character doing the hunting +$toonid = $_SESSION['playerid']; $treasdate = mysqli_real_escape_string($con, $_POST['treasuredate']); if ($droptype == 1){ $rarity = mysqli_real_escape_string($con, $_POST['rare']); diff --git a/gw-location.php b/gw-location.php index 23df8d1..e26d55e 100644 --- a/gw-location.php +++ b/gw-location.php @@ -3,8 +3,6 @@ session_start(); include_once 'gw-connect.php'; $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); -//all POST variable data under here -//$playerid = mysqli_real_escape_string($con, $_POST['playerid']); $playerid = $_SESSION['playerid']; if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); @@ -14,7 +12,7 @@ if (!$resultmap = $con->query($sqlmaploc)){ die ('There was an error running the query [' . $con->error . ']'); } echo '
'; -echo ''; +//echo ''; echo '