From 354214ee4700c96e7c21bbab82fc99d2b6afaa14 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 22 May 2017 15:58:51 -1000 Subject: [PATCH] did attribute requirement twice 2nd $req was supposed to be $attrib --- gw-insert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-insert.php b/gw-insert.php index eea1363..593412a 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -13,7 +13,7 @@ if ($droptype == 1){ $weap = mysqli_real_escape_string($con, $_POST['weapon']); $itname = mysqli_real_escape_string($con, $_POST['itemname']); $treasdate = mysqli_real_escape_string($con, $_POST['treasuredate']); - $sqlweapins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap , $req, $rarity, '$itname')"; + $sqlweapins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap, $attrib, $rarity, '$itname')"; if (!$result = $con->query($sqlweapins)){ die ('There was an error running the query [' . $con->error . ']'); }