ソースを参照

ok check before the while loop runs

this will probab;y break something ...
development
mauirixxx 8年前
コミット
4af9fd7ee4
1個のファイルの変更11行の追加7行の削除
  1. +11
    -7
      gw-pull.php

+ 11
- 7
gw-pull.php ファイルの表示

@@ -9,13 +9,17 @@ $sql = "SELECT * FROM `history` WHERE `charname` = '$cnameid' ORDER BY `historyd
if (!$result = $con->query($sql)){ if (!$result = $con->query($sql)){
die ('There was an error running the query [' . $con->error . ']'); die ('There was an error running the query [' . $con->error . ']');
} }
while ($row = $result->fetch_array()){
echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and ';
if (is_null($row['material'])) {
echo 'a ' . $row['itemrarity'] . ' req' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named something stupid <BR />';
} else {
echo 'a ' . $row['material'] . '!<BR />';
} //add another else statement to cover RUNES here
if (mysqli_num_rows($result) > 0) {
while ($row = $result->fetch_array()){
echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and ';
if (is_null($row['material'])) {
echo 'a ' . $row['itemrarity'] . ' req' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named something stupid <BR />';
} else {
echo 'a ' . $row['material'] . '!<BR />';
} //add another else statement to cover RUNES here
}
} else {
echo 'no data to display for that character';
} }
?> ?>




読み込み中…
キャンセル
保存