Hi there,
I want to restrict some (UserName)s from been registered to my web site, so I made a table in the databse called (Restricted) putting inside it all the possible (UserName)s that I want to prevent the new users to register with them.
The following query I made to test if the new (UserName) is prohibited or not:
$Query = " SELECT UserName FROM Restricted WHERE UserName = '$_POST[UserName]' ";
and its working if the table contain for example the word "GAY" so if the new user tried to sign with user name "GAY" it will prevent him because its equals to the word "GAY" in the databse.
BUT if the new user tried to signup with "GAY1" it will let him!
The question now is how can I prevent for example all the (UserName)s that contains the word "GAY" if the word "GAY" is one of the rows in my table "Restricted"?
I hope I was clear
I want to restrict some (UserName)s from been registered to my web site, so I made a table in the databse called (Restricted) putting inside it all the possible (UserName)s that I want to prevent the new users to register with them.
The following query I made to test if the new (UserName) is prohibited or not:
$Query = " SELECT UserName FROM Restricted WHERE UserName = '$_POST[UserName]' ";
and its working if the table contain for example the word "GAY" so if the new user tried to sign with user name "GAY" it will prevent him because its equals to the word "GAY" in the databse.
BUT if the new user tried to signup with "GAY1" it will let him!
The question now is how can I prevent for example all the (UserName)s that contains the word "GAY" if the word "GAY" is one of the rows in my table "Restricted"?
I hope I was clear
