Pārlūkot izejas kodu

shoudl be able to record dropped material now

development
mauirixxx pirms 8 gadiem
vecāks
revīzija
029d0bce28
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      gw-insert.php

+ 5
- 1
gw-insert.php Parādīt failu

@@ -18,7 +18,11 @@ if ($droptype == 1){
die ('There was an error running the query [' . $con->error . ']');
}
} else if ($droptype == 2){
echo 'drop was a rare material!<BR />';
$matid = mysqli_real_escape_string($con, $_POST['rarematerials']);
$sqlmatin = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, material) VALUES ('$treasdate', $toonid, $locid, $gold, $matid)";
if (!$result = $con->query($sqlmatins)){
die ('There was an error running the query [' . $con->error . ']');
}
} else if ($droptype == 3){
$runeid = mysqli_real_escape_string($con, $_POST['rune']);
$runerare = mysqli_real_escape_string($con, $_POST['runerarity']);


Notiek ielāde…
Atcelt
Saglabāt