From c7fe90075051f16f6760e1e93269499b58acb062 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 23:44:12 -1000 Subject: [PATCH] am I not getting the playerid? --- gw-location.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gw-location.php b/gw-location.php index ce15537..31f1f04 100644 --- a/gw-location.php +++ b/gw-location.php @@ -7,17 +7,17 @@ $playerid = mysqli_real_escape_string($con, $_POST['playerid']); if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -$sqlmaploc = "SELECT * FROM treasurelocation"; +$sqlmaploc = "SELECT treasurelocation.treasureid, treasurelocation.location FROM treasurelocation"; if (!$resultmap = $con->query($sqlmaploc)){ die ('There was an error running the query [' . $con->error . ']'); } echo '
'; echo ''; +echo 'Current playerid is :' . $playerid '
'; echo '