Pārlūkot izejas kodu

actual rune db insertion test

here we go!
development
mauirixxx pirms 8 gadiem
vecāks
revīzija
d8f2fc6f3f
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      gw-insert.php

+ 4
- 2
gw-insert.php Parādīt failu

@@ -23,8 +23,10 @@ if ($droptype == 1){
$runeid = mysqli_real_escape_string($con, $_POST['runeid']); $runeid = mysqli_real_escape_string($con, $_POST['runeid']);
$runerare = mysqli_real_escape_string($con, $_POST['runerarity']); $runerare = mysqli_real_escape_string($con, $_POST['runerarity']);
$runetype = mysqli_real_escape_string($con, $_POST['rune']); $runetype = mysqli_real_escape_string($con, $_POST['rune']);
echo "SQL code should be \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemtype, itemrarity, runetype) VALUES (\'$treasdate\', $toonid, $locid, $gold, \'16\', $runerare, $runeid)\" <BR />";
echo 'drop was a rune!<BR />';
$sqlruneins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemtype, itemrarity, runetype) VALUES ('$treasdate', $toonid, $locid, $gold, '16', $runerare, $runeid)";
if (!$result = $con->query($sqlruneins)){
die ('There was an error running the query [' . $con->error . ']');
}
} else { } else {
echo 'No data was sent!<BR />'; echo 'No data was sent!<BR />';
} }


Notiek ielāde…
Atcelt
Saglabāt