[PHP] SOLVED: [PHP] random alphanumeric value generator

2004-01-26 Thread craig
ct: Re: [PHP] random alphanumeric value generator > > > because it is MySQL, couldn't you just use mysql_insert_id > http://www.php.net/manual/en/function.mysql-insert-id.php instead of > this: > >//now get the random number, and MD5 it to get it alphanumeric >$

Re: [PHP] random alphanumeric value generator

2004-01-26 Thread Matt Matijevich
because it is MySQL, couldn't you just use mysql_insert_id http://www.php.net/manual/en/function.mysql-insert-id.php instead of this: //now get the random number, and MD5 it to get it alphanumeric $query = 'SELECT MAX(uiIndex), cKey FROM randomKey GROUP BY cKey'; $result = mysql_query($qu

[PHP] random alphanumeric value generator

2004-01-26 Thread craig
Hi, I am trying to generate a non-sequential random alphanumeric value. Just to make things fun, I need to guarantee that each value is unique. I have a working solution, but it seems retarded to me because there is a small chance that 2 people might hit the same page at the same time, do separ