What is the best way to check to see if a username exists?
I use:
But it always returns the "Your username is already in use" error.PHP Code:$user_check = mysql_query("SELECT username FROM users WHERE username='$r_username'");
$do_user_check = mysql_num_rows($user_check);
if($do_user_check > 0) {
die('Your username is already in use. Please go <a href="register.php">back</a> and fix it.');
}





Reply With Quote





Sorry if I am incorrect

