diff --git a/gw-pull.php b/gw-pull.php index 8fb81a4..6af5d10 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -1,4 +1,5 @@ Treasure Data + 0) { echo ' at ' . $row['location'] . '
'; } } else { - echo 'no data to display for that character'; + echo 'There is no data to display for that character yet'; } ?> -
-Return to character selection page \ No newline at end of file +Return to character selection page + \ No newline at end of file diff --git a/gw-record.php b/gw-record.php new file mode 100644 index 0000000..8501989 --- /dev/null +++ b/gw-record.php @@ -0,0 +1,18 @@ +What Dropped? +connect_errno > 0){ + die ('Unable to connect to database [' . $db->connect_errno . ']'); +} +$sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC"; +if (!$result = $con->query($sql)){ + die ('There was an error running the query [' . $con->error . ']'); +} +echo ''; while ($row = $result->fetch_array()){ $charid = $row['playerid']; $charname = $row['charname']; - echo ''; //need to change first charname variable to charid once I work out the SQL query + echo ''; } -echo ''; //gw-pull doesn't accept post data yet. or does it? +echo ''; ?> \ No newline at end of file