diff --git a/gw-pull.php b/gw-pull.php
index 39a78b7..303a606 100644
--- a/gw-pull.php
+++ b/gw-pull.php
@@ -1,11 +1,11 @@
connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
-$sql = "SELECT * FROM `history` WHERE `charname` = '$cname' ORDER BY `historydate` ASC";
+$sql = "SELECT * FROM `history` WHERE `charname` = '$cnameid' ORDER BY `historydate` ASC";
if (!$result = $con->query($sql)){
die ('There was an error running the query [' . $con->error . ']');
}
diff --git a/gw-toon.php b/gw-toon.php
index dfae10c..03c8487 100644
--- a/gw-toon.php
+++ b/gw-toon.php
@@ -9,6 +9,6 @@ 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'] . '
';
+ echo 'Please select a character to continue: ' . $row['charname'] . '
';
}
?>