|
|
|
@@ -34,14 +34,14 @@ while ($row = $result->fetch_array()){ |
|
|
|
$rarity = $row['rarity']; |
|
|
|
echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>'; |
|
|
|
} |
|
|
|
echo '</SELECT>'; |
|
|
|
echo '</SELECT>, '; |
|
|
|
|
|
|
|
//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<SELECT NAME="requirement">'; |
|
|
|
echo 'req<SELECT NAME="requirement">'; |
|
|
|
while ($row = $result->fetch_array()){ |
|
|
|
$reqid = $row['req']; |
|
|
|
echo '<OPTION VALUE="' . $reqid . '">' . $reqid . '</OPTION>'; |
|
|
|
@@ -62,7 +62,20 @@ while ($row = $result->fetch_array()){ |
|
|
|
} |
|
|
|
echo '</SELECT>'; |
|
|
|
|
|
|
|
//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 '<SELECT NAME="weapon">'; |
|
|
|
while ($row = $result->fetch_array()){ |
|
|
|
$typeid = $row['weaponid']; |
|
|
|
$weapon = $row['weapontype']; |
|
|
|
echo '<OPTION VALUE="' . $typeid . '">' . $weapon . '</OPTION>'; |
|
|
|
//need to figure out how to display the options for weapon, material, or rune |
|
|
|
} |
|
|
|
echo '</SELECT>'; |
|
|
|
|
|
|
|
echo ' |weapon/mat/rune code here|<BR /><BR />'; |
|
|
|
echo ' <BR /><BR />'; |
|
|
|
echo 'End result: a Gold r9 Swordsmanship Sword'; //need to arrange code blocks around to achieve this |
|
|
|
?> |