Переглянути джерело

did attribute requirement twice

2nd $req was supposed to be $attrib
development
mauirixxx 8 роки тому
джерело
коміт
354214ee47
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      gw-insert.php

+ 1
- 1
gw-insert.php Переглянути файл

@@ -13,7 +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']);
$sqlweapins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap , $req, $rarity, '$itname')";
$sqlweapins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('$treasdate', $toonid, $locid, $gold, $req, $weap, $attrib, $rarity, '$itname')";
if (!$result = $con->query($sqlweapins)){
die ('There was an error running the query [' . $con->error . ']');
}


Завантаження…
Відмінити
Зберегти