Sfoglia il codice sorgente

trying to look at inserted data

date data used to insert fine, not sure what happened
development
mauirixxx 8 anni fa
parent
commit
56f86c5ec9
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      gw-insert.php

+ 3
- 2
gw-insert.php Vedi File

@@ -20,9 +20,10 @@ 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']);


Caricamento…
Annulla
Salva