Results 1 to 14 of 14
Jun 13, 2007, 16:43 #1
- Join Date
- Mar 2005
- Sydney, Australia
- 0 Post(s)
- 0 Thread(s)
Generating random, unique invoice number
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);
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.