From f0382b9206b14e5e306f95494740399d38369000 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 17 May 2017 23:26:02 -1000 Subject: [PATCH] need to make a form for actual submission --- gw-toon.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gw-toon.php b/gw-toon.php index e69de29..cc08996 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -0,0 +1,14 @@ +connect_errno > 0){ + die ('Unable to connect to database [' . $db->connect_errno . ']'); +} +$sql = "SELECT charname FROM `playername` WHERE `userid` = '1' ORDER BY `charname` ASC"; //need to make userid a variable +if (!$result = $con->query($sql)){ + die ('There was an error running the query [' . $con->error . ']'); +} +while ($row = $result->fetch_array()){ + echo 'Please select a character to continue' . $row['charname']; +} +?>