Преглед на файлове

can we echo the SQL statement now?

development
mauirixxx преди 8 години
родител
ревизия
49f2b67919
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      gw-insert.php

+ 2
- 2
gw-insert.php Целия файл

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


Зареждане…
Отказ
Запис