From 14fd66d9e23125b430a93d045a780f8a07c5005f Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 30 Jul 2018 15:38:46 -1000 Subject: [PATCH] forgot I changed the database table name for the treasure location --- gw-history.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gw-history.php b/gw-history.php index 8fa7a6e..40d2eaa 100644 --- a/gw-history.php +++ b/gw-history.php @@ -16,7 +16,7 @@ $profcolor = $_SESSION['profcolor']; if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -$sql = "SELECT history.*, treasurelocation.*, playername.`playerid`, playername.`charname` FROM ((history INNER JOIN treasurelocation ON history.`locationid` = treasurelocation.`treasureid`) INNER JOIN playername ON history.`charnameid` = playername.`playerid`) WHERE history.`charnameid` = '$cnameid' ORDER BY `historydate`,`historyid` ASC"; +$sql = "SELECT history.*, treasuredata.*, playername.`playerid`, playername.`charname` FROM ((history INNER JOIN treasurelocation ON history.`locationid` = treasurelocation.`treasureid`) INNER JOIN playername ON history.`charnameid` = playername.`playerid`) WHERE history.`charnameid` = '$cnameid' ORDER BY `historydate`,`historyid` ASC"; if (!$result = $con->query($sql)){ die ('There was an error running the query [' . $con->error . ']'); } @@ -89,4 +89,4 @@ if (mysqli_num_rows($result) > 0) { - \ No newline at end of file +