diff --git a/gw-login.php b/gw-login.php
index 46be2aa..ace9f02 100644
--- a/gw-login.php
+++ b/gw-login.php
@@ -8,7 +8,6 @@ $password = md5($password);
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
-echo 'broke something above the sql statement!
';
$sqllogin = "SELECT * FROM users WHERE users.username = '$username' and password = '$password'";
if ($result = $con->query($sqllogin)){
while ($row = $result->fetch_array()){
@@ -20,7 +19,9 @@ if ($result = $con->query($sqllogin)){
$_SESSION['access'] = $access;
echo 'Your username is ' . $uname . '. Your userid is ' . $uid . '. Your access level is ' . $access . '.
';
}
- echo 'Login failed - please try again here';
+} else {
+ echo 'Login failed - please try again here'; //saving this for later
+ exit;
}
echo 'Proceed to character selection here
'; //really should automate this
?>
\ No newline at end of file