$result = (mysql_query("SELECT * FROM users WHERE user_name = '$form_user_name'"));
if (mysql_num_rows($result))
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in register.php on line 32
You see my problem above...
I have a registerpage where people sign up with usename password and so on...This little code above should be able to tell if the user_name is already taken or not. But when I try to register with a user_name that not exist I get this error.
Isn't mysql_num_rows working if the $result is empty? Is there any way to get around this problem?
Best regards
/Emil Hansson