Change
PHP Code:
if($result != ""){
echo("Username already exists in database. Please choose a different username to continue.");
exit;
to
PHP Code:
if($result){
echo("Username already exists in database. Please choose a different username to continue.");
exit;
If you need any more MySQL or PHP help, email me, go to my team's website (which was built by me using PHP/MySQL), or check out this project I'm heading, supermod.org.