RE: UNIQUE ID problems...

2001-07-27 Thread Bob Showalter
> -Original Message- > From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 27, 2001 2:50 AM > To: Beginners (E-mail); Beginners-Cgi (E-mail) > Subject: UNIQUE ID problems... > > > List, > > Interesting problem that I think proves j

Re: UNIQUE ID problems...

2001-07-27 Thread Jos I. Boumans
if you say 'unique' you probably want to concider an autonumber field in your db for the primary key it's *always* unique... you can even do a query on the db to give you the current_id for a table (so the one you want to insert would be current_id + 1 ) depending on what db you use, the sql is

UNIQUE ID problems...

2001-07-26 Thread Daniel Falkenberg
List, Interesting problem that I think proves just how much I really don't know about Perl. I have copyied most of this variable from the internet... my $unique_id = time && 0xF && $$; ALL I know is that this uses Unix time and some sort of process ID and also adds some other magic stuf