rxbanditboy1112 Posted December 12, 2007 Share Posted December 12, 2007 Every time a costumer from another country (and sometimes from the US) comes to my website the $unique_cid = md5(uniqid(rand(),TRUE)); fails and generates a 3 digit number.... I just implemented a fix so that it checks to see if that id is already in the database but it may end up being linear and killing the whole point of this part of the program. Anyways.... Let me know if anyone else has any idea why this could possibly generate a 2-3 digit number. I heard uniqid() has to do with system time. Perhaps that is the problem Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.