Browse Source

more fixes for recording a nothing drop

development
mauirixxx 8 years ago
parent
commit
e80077221c
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      gw-insert.php
  2. +1
    -1
      gw-record.php

+ 2
- 1
gw-insert.php View File

@@ -40,7 +40,8 @@ if ($droptype == 1){
}
} else if ($droptype == 4){
$itname = mysqli_real_escape_string($con, $_POST['itemname']);
$sqlnothing = "INSERT INTO `history` (historydate, userid, charnameid, locationid, goldrec, itemname) VALUES ('$treasdate', $uid, $toonid, $locid, $gold, '$itname')";
$itnothing = mysqli_real_escape_string($con, $_POST['itemtype']);
$sqlnothing = "INSERT INTO `history` (historydate, userid, charnameid, locationid, goldrec, itemtype, itemname) VALUES ('$treasdate', $uid, $toonid, $locid, $gold, $itnothing, '$itname')";
if (!$result = $con->query($sqlnothing)){
die ('There was an error running the query [' . $con->error . ']');
}


+ 1
- 1
gw-record.php View File

@@ -126,7 +126,7 @@ if ($whatdropped == "1"){
echo 'on <INPUT NAME="treasuredate" TYPE="DATE" PLACEHOLDER="2006-10-26" VALUE="' . date('Y-m-d') . '"> nothing dropped! Maybe try again in 30 days on: ' . date('Y-m-d', strtotime("+30 days"));
echo '<INPUT TYPE="HIDDEN" NAME="droppedgold" VALUE="0"><INPUT TYPE="HIDDEN" NAME="itemname" VALUE="Nothing dropped!">';
echo '<INPUT TYPE="HIDDEN" NAME="droptype" VALUE="4"><INPUT TYPE="HIDDEN" NAME="location" VALUE="' . $locid .'">';
echo '<INPUT TYPE="HIDDEN" NAME="chartoon" VALUE="' . $toonid .'">';
echo '<INPUT TYPE="HIDDEN" NAME="itemtype" VALUE="17"><INPUT TYPE="HIDDEN" NAME="chartoon" VALUE="' . $toonid .'">';
echo ' <BR /><INPUT TYPE="SUBMIT" VALUE="Click me!"></FORM></CENTER><BR />';
} else {
echo '<CENTER><FORM METHOD="POST"><SELECT NAME="gwdrop" onchange="this.form.submit()">';


Loading…
Cancel
Save