From 29596a8b46c71a6976e58e6a3a018209b28f15a0 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 30 Jul 2018 15:44:06 -1000 Subject: [PATCH] ugh sql tables names again --- gw-history.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-history.php b/gw-history.php index 40d2eaa..8bfb515 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.*, 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"; +$sql = "SELECT history.*, treasuredata.*, playername.`playerid`, playername.`charname` FROM ((history INNER JOIN treasuredata ON history.`locationid` = treasuredata.`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 . ']'); }