data[0]['Id']; $_SESSION['accesslevel'] = $result->data[0]['AccessLevel']; echo("Successfully logged in! Continue..."); } else { echo("The login details you entered are incorrect."); } } else { // Show login form echo("