From 2b786bb5f16bf1c598910893b6b2cce605ade9c1 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 21 May 2017 00:16:38 -1000 Subject: [PATCH] would help if i actually saved the changes I noted earlier --- gw-record.php | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/gw-record.php b/gw-record.php index 9722bc3..6c8a960 100644 --- a/gw-record.php +++ b/gw-record.php @@ -21,19 +21,7 @@ while ($row = $result->fetch_array()){ echo '' . $locname . ''; } -echo ' a/an '; - -//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'; +echo ' a '; //code for white blue purple etc $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; @@ -48,6 +36,18 @@ while ($row = $result->fetch_array()){ } 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'; + //code for what attribute the weapon is (command, axe mastery, energy storage, etc $sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC"; if (!$result = $con->query($sqlweapattr)){ @@ -61,6 +61,8 @@ while ($row = $result->fetch_array()){ //need to add a nested while loop, to preselect the weapon with the attribute, or somehow java it? An r9 Axe of Energy Storage combo doesn't exist. } echo ''; + + echo ' |weapon/mat/rune code here|

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