Преглед изворни кода

dealing with runes in the mix

development
mauirixxx пре 8 година
родитељ
комит
613b2e77b7
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      gw-pull.php

+ 4
- 1
gw-pull.php Прегледај датотеку

@@ -12,11 +12,14 @@ if (!$result = $con->query($sql)){
if (mysqli_num_rows($result) > 0) { if (mysqli_num_rows($result) > 0) {
while ($row = $result->fetch_array()){ while ($row = $result->fetch_array()){
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'] == "Rune") {
echo 'a ' . $row['itemtype'] . ' of ' . $row['runetype'] . '!<BR />';
} else {
if (is_null($row['material'])) { if (is_null($row['material'])) {
echo 'a ' . $row['itemrarity'] . ' req' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named something stupid <BR />'; echo 'a ' . $row['itemrarity'] . ' req' . $row['itemreq'] . ' ' . $row['itemattribute'] . ' ' . $row['itemtype'] . ' named something stupid <BR />';
} else { } else {
echo 'a ' . $row['material'] . '!<BR />'; echo 'a ' . $row['material'] . '!<BR />';
} //add another else statement to cover RUNES here
} //add another else statement to cover RUNES here. or up there.
} }
} else { } else {
echo 'no data to display for that character'; echo 'no data to display for that character';


Loading…
Откажи
Сачувај