A Unique ID
Monday May 15, 2006
I'm sure it's happened to you before: you sign up for a site and they generate you a unique user ID to use. One way to do this in PHP is to use the uniqid () function. This with generate a 13 or 23 character unique ID, which you can then add a prefix to if you desire. Once you send this to the user, you can then encrypt it and store it in the database.


Wow, and I thought something like this would require a huge and complicated code. Amazingly easy
thanks.