Greg,

You can easily test of a duplicate with an index...

You can also keep track of the last used record and increment it.

If you want a permanent record, something like the saving of a small file
should do.

Last but not least, combining the id with another thing like the file name
or a unique database identifier can help enhance uniqueness further...

Is it possible that two clients create to records at the same time? Sooner
or later, this could happen.

Cheers
Xavier

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Gregory Lypny
> Sent: Wednesday, November 10, 2004 16:34
> To: Revolution
> Subject: Unique serial numbers
> 
> Hello everyone,
> 
> I want to assign a unique serial number of each record 
> created using a Rev CGI, and I'm wondering whether the long 
> seconds at the time of record creation would fit the bill.
> 
>       Greg
> 
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to