diff --git a/gw-insert.php b/gw-insert.php index 63198ba..ec77cf0 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -38,6 +38,12 @@ if ($droptype == 1){ if (!$result = $con->query($sqlruneins)){ die ('There was an error running the query [' . $con->error . ']'); } +} else if ($droptype == 4){ + $itname = mysqli_real_escape_string($con, $_POST['itemname']); + $sqlnothing = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemname) VALUES ('$treasdate', $uid, $toonid, $locid, $gold, '$itname')"; + if (!$result = $con->query($sqlnothing)){ + die ('There was an error running the query [' . $con->error . ']'); + } } else { exit("Variable droptype was set to ($droptype)"); } diff --git a/gw-record.php b/gw-record.php index d0c735d..b455ae5 100644 --- a/gw-record.php +++ b/gw-record.php @@ -124,7 +124,7 @@ if ($whatdropped == "1"){ } else if ($whatdropped == "4"){ echo '