connect_errno){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } if (!$userid){ echo 'Please login first
Aloha, and welcome to my Guild Wars stats tracker. Please login below.
'; echo '
'; echo '
Username:
Password:
'; echo '


'; echo 'If you haven\'t registered an account yet,
please click here to create one.
'; } else { echo '' . $pagetitle . '
'; echo '(Home) (Options) '; if ($_SESSION['admin'] == 1){ echo'(Administration) '; } echo '(Logout ' . $_SESSION['username'] . ')

'; } ?>