瀏覽代碼

weapon display

along with material and rune. need to rethink this for better workflow
development
mauirixxx 8 年之前
父節點
當前提交
47e50cc215
共有 1 個文件被更改,包括 16 次插入3 次删除
  1. +16
    -3
      gw-record.php

+ 16
- 3
gw-record.php 查看文件

@@ -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
?>

Loading…
取消
儲存