diff --git a/gw-insert.php b/gw-insert.php index 8e8352a..7794dcd 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -2,9 +2,12 @@ include_once 'gw-connect.php'; $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); //post data section +# just testing max gold value - should be 9999 +$gold = $_POST['droppedgold']; $droptype = mysqli_real_escape_string($con, $_POST['droptype']); //this dictates if the drop was a weapon/rune/material $locid = mysqli_real_escape_string($con, $_POST['location']); //this is `treasurelocation`.`treasureid` in the database echo 'The droptype variable is set to ' . $droptype . '
'; echo 'The locid variable is set to ' . $locid . '
'; -echo 'Return to data recording page'; +echo 'The amount of gold dropped was ' . $gold . '
'; +echo '
Return to data recording page'; ?> \ No newline at end of file diff --git a/gw-record.php b/gw-record.php index adec28d..551c32b 100644 --- a/gw-record.php +++ b/gw-record.php @@ -72,7 +72,7 @@ if ($whatdropped == "1"){ echo ''; } echo ''; - echo ' and gold pieces.'; + echo ' and gold pieces.'; echo ''; echo '

'; } else if ($whatdropped == "2"){