query($sqlweapins)){ die ('There was an error running the query [' . $con->error . ']'); } } else if ($droptype == 2){ echo 'drop was a rare material!
'; } else if ($droptype == 3){ $runeid = mysqli_real_escape_string($con, $_POST['runeid']); $runerare = mysqli_real_escape_string($con, $_POST['runerarity']); $runetype = mysqli_real_escape_string($con, $_POST['rune']); $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 { echo 'No data was sent!
'; } echo '
Return to data recording page'; ?>