MySQL returns the autoincrement number - ask it! In php, this is
wrapped into mysql_insert_id();
Zbigniew Szczesny schrieb am Montag, 30. Juli 2001, 21:15:37:
> Hello !
> I have a following problem while scripting MySQL with PHP4:
> Imagine the user may add a record to a table. How can I know
> precisely what was the number (auto increment primary key)
> given by MySQL to this new inserted row ??? You may presume
> there are many simultaneus users adding rows, so I need a
> accurate information.
> Thank you for your kind help,
> Ziggi
--
Herzlich
Werner Stuerenburg
_________________________________________________
ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
http://pferdezeitung.de
---------------------------------------------------------------------
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