From 159c93341585a54fde7cb421a0994f65749b84fb Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 21 May 2017 03:01:19 -1000 Subject: [PATCH] each section will have it's own form button I guess --- gw-insert.php | 8 +++++++- gw-record.php | 9 +++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gw-insert.php b/gw-insert.php index 6165be9..8e2bcb9 100644 --- a/gw-insert.php +++ b/gw-insert.php @@ -1,5 +1,11 @@
'; +echo 'If this worked then there will be a number here: ' . $rare . '
'; +echo 'The droptype variable is set to ' . $droptype . '
'; echo 'Return to data recording page'; ?> \ No newline at end of file diff --git a/gw-record.php b/gw-record.php index 2b6dc41..a93f251 100644 --- a/gw-record.php +++ b/gw-record.php @@ -10,15 +10,15 @@ $whatdropped = mysqli_real_escape_string($con, $_POST['gwdrop']); if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -echo '
'; echo 'At '; -$sqlmaplocation = "SELECT `location`, `wikilink` FROM `treasurelocation` WHERE `treasureid` = $location"; +$sqlmaplocation = "SELECT * FROM `treasurelocation` WHERE `treasureid` = $location"; if (!$result = $con->query($sqlmaplocation)){ die ('There was an error running the query [' . $con->error . ']'); } while ($row = $result->fetch_array()){ $locname = $row['location']; $loclink = $row['wikilink']; + $locid = $row['treasureid']; echo '' . $locname . ''; } echo ' a '; @@ -72,6 +72,7 @@ if ($whatdropped == "1"){ } echo ''; } else if ($whatdropped == "2"){ + echo ''; //code for what rare material dropped $sqlraremat = "SELECT * FROM `materials` ORDER BY `materialid` ASC"; if (!$result = $con->query($sqlraremat)){ @@ -84,7 +85,8 @@ if ($whatdropped == "1"){ echo ''; } echo ' '; - echo ' and |code for gold dropped here| gold pieces'; + echo ' and |code for gold dropped here| gold pieces. FYI, the loclink variable is set to '. $locid . ' '; + echo ''; echo '

'; } else if ($whatdropped == "3"){ echo 'run rune code'; @@ -95,7 +97,6 @@ if ($whatdropped == "1"){ echo ''; echo ''; echo ''; - exit; } echo 'Reload the page with no GET data? RELOAD'; ?> \ No newline at end of file