From 2c4219107a3b371301a7efbc23f8a2ad3326c92e Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 21 May 2017 23:26:06 -1000 Subject: [PATCH] found the missing closure --- gw-insert.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gw-insert.php b/gw-insert.php index 43809e7..ce5177e 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -9,11 +9,11 @@ $toonid = mysqli_real_escape_string($con, $_POST['chartoon']; //this is the id o if ($droptype == 1){ $rarity = mysqli_real_escape_string($con, $_POST['rare']); $req = mysqli_real_escape_string($con, $_POST['requirement']); - $attrib = mysqli_real_escape_string($con, $_POST['attribute']; + $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', '$variable-name-of-weapon');"'; - echo 'Well something broke somewhere!
'; + $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', '$variable-name-of-weapon');"'; + echo '
Well something broke somewhere!
'; } else if ($droptype == 2){ echo 'drop was a rare material!
'; } else if ($droptype == 3){