I know the following error appears when someone is trying to register with a name that already exists inside of the database:
Mysqli statement execute error : Duplicate entry 'xxx' for key 'username'
When the end user uses the top right login/signup it tells him when the name he tries to register is already taken, however if he registers using the direct link www.domain.com/register and tries to use the same registered name, he doesn't get any warning about duplicate usernames until he submits the registration and he ends up with a "A server error occurred. Please try again later." instead with the normal message posted below.
Any idea how could i set so the "
Please correct the following errors:
- User names must be unique. The specified user name is already in use.
message to bewhen he is using the direct registration link too?