Преглед изворни кода

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 . ']');
}


Loading…
Откажи
Сачувај