From 029d0bce28b42edeb55ae71ae973f0e8a4116f07 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 16:15:48 -1000 Subject: [PATCH] shoudl be able to record dropped material now --- gw-insert.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gw-insert.php b/gw-insert.php index 4be89b9..0dcca13 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -18,7 +18,11 @@ if ($droptype == 1){ die ('There was an error running the query [' . $con->error . ']'); } } else if ($droptype == 2){ - echo 'drop was a rare material!
'; + $matid = mysqli_real_escape_string($con, $_POST['rarematerials']); + $sqlmatin = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, material) VALUES ('$treasdate', $toonid, $locid, $gold, $matid)"; + if (!$result = $con->query($sqlmatins)){ + die ('There was an error running the query [' . $con->error . ']'); + } } else if ($droptype == 3){ $runeid = mysqli_real_escape_string($con, $_POST['rune']); $runerare = mysqli_real_escape_string($con, $_POST['runerarity']);