verification
I'm trying to do something like:
So, as you may guess, I need the script to verify if the user with such userName already exists. If not - proceed with the registration.
Unfortunately, it seems to say that there's already one such account even if some part of the inputted user name coincide, and I need the rejection of newly entered name only if it's the same as existing one on 100%, not partially.
Does someone know how could this be managed?
//Part of code
$data = mysql_fetch_array($result);
if($data['userName']==$userName) {
echo "This user name already exists!
Go back and try another one.";
exit;
So, as you may guess, I need the script to verify if the user with such userName already exists. If not - proceed with the registration.
Unfortunately, it seems to say that there's already one such account even if some part of the inputted user name coincide, and I need the rejection of newly entered name only if it's the same as existing one on 100%, not partially.
Does someone know how could this be managed?
