| @@ -18,6 +18,10 @@ if (mysqli_num_rows($result) > 0) { | |||||
| echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and '; | echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and '; | ||||
| if ($row['itemtype'] == 16) { //this would be a rune | if ($row['itemtype'] == 16) { //this would be a rune | ||||
| echo 'a rune of ' . $row['runetype']; | echo 'a rune of ' . $row['runetype']; | ||||
| $runeid = '6'; | |||||
| $sqlrune = "SELECT listrunes.`runeid`, listrunes.`runes` FROM listrunes WHERE listrunes.`runeid` = $runeid"; | |||||
| $runeresults = mysqli_query($con, $sqlrune); | |||||
| echo 'Results of mapping runeid to runes: ' $runeresults; | |||||
| } else { | } else { | ||||
| if (is_null($row['material'])) { | 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 | echo 'a ' . $row['itemrarity'] . ' r' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named ' . $row['itemname'] . ''; //itemtype changed, need to convert itemtype to something readable | ||||
| @@ -31,9 +35,6 @@ if (mysqli_num_rows($result) > 0) { | |||||
| echo 'There is no data to display for that character yet'; | echo 'There is no data to display for that character yet'; | ||||
| } | } | ||||
| # test getting rune results without breaking working parts | # test getting rune results without breaking working parts | ||||
| $sqlrune = "SELECT listrunes.`runeid`, listrunes.`runes` FROM listrunes WHERE listrunes.`runeid` = $runeid"; | |||||
| $runeresults = mysqli_query($con, $sqlrune); | |||||
| echo 'Results of mapping runeid to runes: ' $runeresults; | |||||
| ?> | ?> | ||||
| <BR /> | <BR /> | ||||
| Return to <A HREF="gw-toon.php">character selection</A> page | Return to <A HREF="gw-toon.php">character selection</A> page | ||||