diff --git a/gw-record.php b/gw-record.php index 04c1d15..92a7fe8 100644 --- a/gw-record.php +++ b/gw-record.php @@ -6,6 +6,7 @@ $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); $toonid = 'Chrissi Chan'; #$location = mysqli_real_escape_string($con, $_POST['locationid']); //enable this after location selection is working $location = 4; +$whatdropped = mysqli_real_escape_string($con, $_POST['gwdrop']); if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } @@ -23,6 +24,14 @@ while ($row = $result->fetch_array()){ echo ' a '; +#experimental stuff +echo '
'; +echo '
'; +echo '

Current drop value is: ' . $whatdropped . '

'; //if this works then it's time to make a big as if else statement + //code for white blue purple etc $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; if (!$result = $con->query($sqlweaprare)){ @@ -75,7 +84,7 @@ while ($row = $result->fetch_array()){ //need to figure out how to display the options for weapon, material, or rune } echo ''; - +echo ' and |code for gold dropped here| gold pieces'; echo '

'; echo 'End result: a Gold r9 Swordsmanship Sword'; //need to arrange code blocks around to achieve this ?> \ No newline at end of file