diff --git a/gw-insert.php b/gw-insert.php index dde549c..433c46f 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -12,7 +12,8 @@ if ($droptype == 1){ $attrib = mysqli_real_escape_string($con, $_POST['attribute']); $weap = mysqli_real_escape_string($con, $_POST['weapon']); $itname = mysqli_real_escape_string($con, $_POST['itemname']); - echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('variable-date-of-treasure', $toonid, $locid, $gold, $req, $weap , 'variable-attribute-of-weapon', 'variable-rarity-of-weapon', '$itname');\"
"; + $treasdate = mysqli_real_escape_string($con, $_POST['treasuredate']); + echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap , 'variable-attribute-of-weapon', 'variable-rarity-of-weapon', '$itname');\"
"; //echo '
Well something broke somewhere!
'; } else if ($droptype == 2){ echo 'drop was a rare material!
'; diff --git a/gw-record.php b/gw-record.php index d17014e..2c83912 100644 --- a/gw-record.php +++ b/gw-record.php @@ -21,10 +21,9 @@ while ($row = $result->fetch_array()){ $locid = $row['treasureid']; echo '' . $locname . ''; } -echo ' a '; if ($whatdropped == "1"){ echo '
'; - echo 'on '; + echo 'on a '; //code for white blue purple etc $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; if (!$result = $con->query($sqlweaprare)){