ソースを参照

sql is fine, error is $toonid isn't being populated

development
mauirixxx 8年前
コミット
7f42e698e2
1個のファイルの変更2行の追加3行の削除
  1. +2
    -3
      gw-insert.php

+ 2
- 3
gw-insert.php ファイルの表示

@@ -20,10 +20,9 @@ if ($droptype == 1){
} else if ($droptype == 2){
$matid = mysqli_real_escape_string($con, $_POST['rarematerial']);
$sqlmatins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, material) VALUES (\"$treasdate\", $toonid, $locid, $gold, $matid)";
/* if (!$result = $con->query($sqlmatins)){
if (!$result = $con->query($sqlmatins)){
die ('There was an error running the query [' . $con->error . ']');
} */
echo $sqlmatins;
}
} else if ($droptype == 3){
$runeid = mysqli_real_escape_string($con, $_POST['rune']);
$runerare = mysqli_real_escape_string($con, $_POST['runerarity']);


読み込み中…
キャンセル
保存