From 91e00ddc00d0cbb4bf1e7b2f36fed3ab621de20c Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Thu, 18 May 2017 13:13:36 -1000 Subject: [PATCH] startin the form for inserting data --- gw-pull.php | 7 ++++--- gw-record.php | 18 ++++++++++++++++++ gw-toon.php | 8 ++------ 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 gw-record.php 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