瀏覽代碼

i think trying to echo the sql code broke something soemwhere

development
mauirixxx 8 年之前
父節點
當前提交
dab78bd6cf
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      gw-insert.php

+ 3
- 1
gw-insert.php 查看文件

@@ -11,7 +11,9 @@ if ($droptype == 1){
$req = mysqli_real_escape_string($con, $_POST['requirement']);
$attrib = mysqli_real_escape_string($con, $_POST['attribute'];
$weap = mysqli_real_escape_string($con, $_POST['weapon']);
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');"';
$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!<BR />';
} else if ($droptype == 2){
echo 'drop was a rare material!<BR />';
} else if ($droptype == 3){


Loading…
取消
儲存