Hello,
Lets say I have a users Database.
When the user registers, it assigns a random id to the user using the mt_rand(); function.
What if there is a slight chance that there would be already the id of that user in the db. How can I prevent this from happening? Besides using AI in the db?
Thanks in advance! :)