$result = mysql_query("SELECT * FROM authormail WHERE username='$username'"); $exists = mysql_num_rows($result); if ($exists == 1) { echo "CP BLAH BLAH BLAH"; //Show Control Panel } else //If they haven't signed up. { echo '
Welcome to the AuthorMail control panel!
You do not currently have an AuthorMail account, but you have the sufficient amount of AUTH$. To apply for an AuthorMail account, click here.
'; }