diff --git a/gw-record.php b/gw-record.php index 6c8a960..04c1d15 100644 --- a/gw-record.php +++ b/gw-record.php @@ -34,14 +34,14 @@ while ($row = $result->fetch_array()){ $rarity = $row['rarity']; echo ''; } -echo ''; +echo ', '; //code for weapon attribute requirment $sqlweapreq = "SELECT * FROM `listreq` ORDER BY `req` ASC"; if (!$result = $con->query($sqlweapreq)){ die ('There was an error running the query [' . $con->error . ']'); } -echo 'r'; while ($row = $result->fetch_array()){ $reqid = $row['req']; echo ''; @@ -62,7 +62,20 @@ while ($row = $result->fetch_array()){ } echo ''; +//code for what the weapon is - staff, dagger, scythe, wand, sword, etc +$sqlweaptype = "SELECT * FROM `listtype` ORDER BY `weaponid` ASC"; +if (!$result = $con->query($sqlweaptype)){ + die ('There was an error running the query [' . $con->error . ']'); +} +echo ''; -echo ' |weapon/mat/rune code here|

'; +echo '

'; echo 'End result: a Gold r9 Swordsmanship Sword'; //need to arrange code blocks around to achieve this ?> \ No newline at end of file