hi. i have yet another problem ( sorry:/ ).
i have, in a script, the following function:
function applynewuser($newuser,$password) {
$check = mysql_query("select * from users where uname = '$newuser'");
if (mysql_num_rows($check) > 0) {
--do random things--
} else {
echo "<p>Username \"<i>$newuser</i>\" already in use. Please try another.</p>\n";
newuser();
}
}
the problem here is that even though there is no username in the database that has the same value as $newuser, i keep getting 're-routed' to the } else { ("user blah is already in use")... can anyone offer any suggestions? please?