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