stewartship wrote:I have a MySQL database table for login authentication and i want the PHP script to be able to suggest alternative usernames to the user if their username already exists.
This algorithm depends only by u and how u want it to be ...
If someone choose 'abc' and this already exists, u can suggest him 'abc1' (of course u check if 'abc1' is not in DB if it is u suggest him 'abc2' and so on), as I said it depends only by u how the suggest username should look like ...