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
>$
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
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
3 matches
Mail list logo