From 19550f485135fd5f835399e6150146e814fad786 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 22 May 2017 00:19:00 -1000 Subject: [PATCH] getting close to actual insertion code --- gw-insert.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gw-insert.php b/gw-insert.php index 433c46f..bba8dd2 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -13,8 +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']); - echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap , 'variable-attribute-of-weapon', 'variable-rarity-of-weapon', '$itname');\"
"; - //echo '
Well something broke somewhere!
'; + echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap , $req, $rarity, '$itname');\"
"; } else if ($droptype == 2){ echo 'drop was a rare material!
'; } else if ($droptype == 3){