query($sqlweapins)){ die ('There was an error running the query [' . $con->error . ']'); } } 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)){ 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']); $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

'; echo 'Go to character selection'; # humans shouldn't actually see this page, will need to auto submit this form back to gw-toon.php using the POST data name of "cname" so the previous toon will be auto selected # or look into using cookies / sessions (sessions being preferable) ?>