
April 20th, 2000, 05:38 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
@chars=("a".."n","p".."z",1..9);
$invoice_num="";
for ($i=1;$i<=10;$i++) {
$invoice_num .= $chars[rand(@chars)];
}
You should see that I didn't use 0 and o on purpose. This should generate a 10 char randomly. You can then keep this $invoice_num and associate it with the proper order. Of course, you need to keep this $invoice_num somwhere so you can keep track of the orders.
|