Okay, I have another problem, the code is fixed now:
{
//Check if user already exists
$un_check = mysql_query("SELECT Username FROM users WHERE Username = '$un'");
if(mysql_num_rows($un_check) >0) {
echo "Username already exists";
}
else{
// Username Free
}
But the database still allows usernames to be the same. Also, even though it says "username already exists" I still creates the account anyway?
any ideas?