浏览代码

getting close to actual insertion code

development
mauirixxx 8 年前
父节点
当前提交
19550f4851
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      gw-insert.php

+ 1
- 2
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');\"<BR />";
//echo '<BR />Well something broke somewhere!<BR />';
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');\"<BR />";
} else if ($droptype == 2){
echo 'drop was a rare material!<BR />';
} else if ($droptype == 3){


正在加载...
取消
保存