I've had success with the following approach (John Smithenstien) is the example username:
This requires two queries and one update to the DB, at most. It implements a rule that is easily understood and guarantees no duplicates. Obviously, there are many variations on this simple rule, but it's best to keep the approach straight-forward.
In reply to Re: Autogenerating usernames
by radiantmatrix
in thread Autogenerating usernames
by EvanCarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |