Hypothetical question...
If I use the rand() function to generate user_ids what are the chances that I will get a duplicate ID for someone who is registering for the first time?
If it is likely that the rand() function will spit out the same number more than once is it wise to do a check to see if the ID is already in the db?  maybe a dumb q.
Also, is it possible to generate a number or ID in a certain format suck as "3498-484DjL"?
I think that would be better than regular numbers....
thanks for any insight on this.
later.
|