Hey all,
I have to generate a max 18 char unique id to send with orders. I was using
$stamp = strtotime ("now");
$orderid = "$stamp$ipaddy";
$orderid = str_replace(".", "", "$orderid");
But it can genrate more than 18 characters. This site will be processing alot so I am afraid of using last_insert_id
as there is a chance more than 2 people could be processing a transaction at the same time.
any ideas
thx