From 3b722ca5010439c3132e3a5e5d366a2af544c5b4 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 16:17:13 -1000 Subject: [PATCH] i always forget something --- gw-insert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-insert.php b/gw-insert.php index 0dcca13..b201d2e 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -19,7 +19,7 @@ if ($droptype == 1){ } } else if ($droptype == 2){ $matid = mysqli_real_escape_string($con, $_POST['rarematerials']); - $sqlmatin = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, material) VALUES ('$treasdate', $toonid, $locid, $gold, $matid)"; + $sqlmatins = "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 . ']'); }