I have developed an ecommerce system and would like to give people a nice, tidy reference number when they have signed up.
At the moment the reference number is created using a combination of today's date and then a string representing their domain name - but I don't think this is very user friendly or tidy!
$ref = echo date("Ymd") . stripslashes($website);
This produces something like: 20070613www.lucidsurf.com
I was thinking, maybe it would be better to convert their domain name into numbers (serialise it?) so that the reference is all numeric - but am not sure of the best approach.
Any suggestions would be much appreciated.