| @@ -7,11 +7,9 @@ $toonid = 'Chrissi Chan'; | |||||
| if ($con->connect_errno > 0){ | if ($con->connect_errno > 0){ | ||||
| die ('Unable to connect to database [' . $db->connect_errno . ']'); | die ('Unable to connect to database [' . $db->connect_errno . ']'); | ||||
| } | } | ||||
| $sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC"; | |||||
| if (!$result = $con->query($sqlweapattr)){ | |||||
| die ('There was an error running the query [' . $con->error . ']'); | |||||
| } | |||||
| echo ' At <insert location SQL code here> a/an '; | |||||
| echo 'At |insert location SQL code here| a/an '; | |||||
| //code for weapon attribute requirment | |||||
| $sqlweapreq = "SELECT * FROM `listreq` ORDER BY `req` ASC"; | $sqlweapreq = "SELECT * FROM `listreq` ORDER BY `req` ASC"; | ||||
| if (!$result = $con->query($sqlweapreq)){ | if (!$result = $con->query($sqlweapreq)){ | ||||
| die ('There was an error running the query [' . $con->error . ']'); | die ('There was an error running the query [' . $con->error . ']'); | ||||
| @@ -22,6 +20,8 @@ while ($row = $result->fetch_array()){ | |||||
| echo '<OPTION VALUE="' . $reqid . '">' . $reqid . '</OPTION>'; | echo '<OPTION VALUE="' . $reqid . '">' . $reqid . '</OPTION>'; | ||||
| } | } | ||||
| echo '</SELECT>'; | echo '</SELECT>'; | ||||
| //code for white blue purple etc | |||||
| $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; | $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; | ||||
| if (!$result = $con->query($sqlweaprare)){ | if (!$result = $con->query($sqlweaprare)){ | ||||
| die ('There was an error running the query [' . $con->error . ']'); | die ('There was an error running the query [' . $con->error . ']'); | ||||
| @@ -33,6 +33,12 @@ while ($row = $result->fetch_array()){ | |||||
| echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>'; | echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>'; | ||||
| } | } | ||||
| echo '</SELECT>'; | echo '</SELECT>'; | ||||
| //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)){ | |||||
| die ('There was an error running the query [' . $con->error . ']'); | |||||
| } | |||||
| echo '<SELECT NAME="attribute">'; | echo '<SELECT NAME="attribute">'; | ||||
| while ($row = $result->fetch_array()){ | while ($row = $result->fetch_array()){ | ||||
| $attrid = $row['weapattrid']; | $attrid = $row['weapattrid']; | ||||