After a simple routine to get a 5 alphanumeric digit.
I have set one up using srand() but it only returns integers.
HAd a look through here but couldnt see how to do it.
Anyone have any ideas or even better an example. It doesnt have to be too sophisticated.
Dont worry. Sorry too late at night just used:
function dm_grab_access_code() {
$access_code = sha1(uniqid(mt_rand(), true)); return substr($access_code,6,5);
}