thank you all for your help,
this was the explanation I needed,
>LAST_INSERT_ID() with an argument creates a value that can be treated
>just like it's an AUTO_INCREMENT value. That means you can call
>LAST_INSERT_ID() without an argument later in the current session to
>retrieve the value you generated. This also has the advantage that you
>don't need to set up any locks.
thanks
Gunnar
p.s. for the spamfilter mysql, database
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php