From 2328dec7bfeb1ae51855d900d9e209522d67939d Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sat, 20 May 2017 13:06:53 -1000 Subject: [PATCH] cut & paste fail, added comments --- gw-record.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/gw-record.php b/gw-record.php index c8321db..1732b58 100644 --- a/gw-record.php +++ b/gw-record.php @@ -7,11 +7,9 @@ $toonid = 'Chrissi Chan'; if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } -$sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC"; -if (!$result = $con->query($sqlweapattr)){ - die ('There was an error running the query [' . $con->error . ']'); -} -echo ' At a/an '; + +echo 'At |insert location SQL code here| a/an '; +//code for weapon attribute requirment $sqlweapreq = "SELECT * FROM `listreq` ORDER BY `req` ASC"; if (!$result = $con->query($sqlweapreq)){ die ('There was an error running the query [' . $con->error . ']'); @@ -22,6 +20,8 @@ while ($row = $result->fetch_array()){ echo ''; } echo ''; + +//code for white blue purple etc $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC"; if (!$result = $con->query($sqlweaprare)){ die ('There was an error running the query [' . $con->error . ']'); @@ -33,6 +33,12 @@ while ($row = $result->fetch_array()){ echo ''; } echo ''; + +//code for what attribute the weapon is (command, axe mastery, energy storage, etc +$sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC"; +if (!$result = $con->query($sqlweapattr)){ + die ('There was an error running the query [' . $con->error . ']'); +} echo '