From 111fe3df3025001bc43fe0856c00b7610a42fe0e Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 10:23:59 -1000 Subject: [PATCH] trying to get rune names just testing to see if I actually get any results first, this is still basically broken. --- gw-pull.php | 8 +++++++- gw-toon.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gw-pull.php b/gw-pull.php index e0b0586..ccd6881 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -17,7 +17,13 @@ if (mysqli_num_rows($result) > 0) { while ($row = $result->fetch_array()){ echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and '; if ($row['itemtype'] == 16) { //this would be a rune - echo 'a rune of ' . $row['runetype']; + $runeid = $row['runeid']; + $sqlrune = "SELECT listrunes.`runeid`, listrunes.`runes` FROM listrunes WHERE listrunes.`runeid` = $runeid"; + if (!$result = $con->query($sqlrune)){ + die ('There was an error running the query [' . $con->error . ']'); + } + $runeresults = mysqli_query($con, $sqlrune); + echo 'a rune of ' . $row['runetype'] . ' or . ' $runeresults; } else { if (is_null($row['material'])) { echo 'a ' . $row['itemrarity'] . ' r' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named ' . $row['itemname'] . ''; //itemtype changed, need to convert itemtype to something readable diff --git a/gw-toon.php b/gw-toon.php index 8e0f2a9..d78f927 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -15,5 +15,5 @@ while ($row = $result->fetch_array()){ $charname = $row['charname']; echo ''; } -echo ''; +echo ''; ?> \ No newline at end of file