You are here: return of a field value (auto-increment) after insert (mysql) « PHP Programming Language « IT news, forums, messages
return of a field value (auto-increment) after insert (mysql)

Posted by rjames.clarke on 11/28/06 16:43

I am inserting a record in to a mysql database. I'd like to know the
record number of that record.
I use a index field which is auto-incremented.

Is there any way to get a field value returned after insertion?

I have been just running another query for the last record, but if
someone does insertion a split second after the first insertion the
last record would not be the one of interest.

thanks
bobc

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация