瀏覽代碼

trying to get rune names

just testing to see if I actually get any results first, this is still basically broken.
development
mauirixxx 8 年之前
父節點
當前提交
111fe3df30
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. +7
    -1
      gw-pull.php
  2. +1
    -1
      gw-toon.php

+ 7
- 1
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


+ 1
- 1
gw-toon.php 查看文件

@@ -15,5 +15,5 @@ while ($row = $result->fetch_array()){
$charname = $row['charname'];
echo '<OPTION VALUE="' . $charid . '">' . $charname . '</OPTION>';
}
echo '<INPUT TYPE="SUBMIT" VALUE="Choose Toon"></FORM>';
echo '</SELECT><INPUT TYPE="SUBMIT" VALUE="Choose Toon"></FORM>';
?>

Loading…
取消
儲存