You are here: Return an primary key value after insert query? « PHP Programming Language « IT news, forums, messages
Return an primary key value after insert query?

Posted by Julian Moorhouse on 07/11/06 10:21

Hi,

I'm fairly new to mysql, but I have a reasonable knowledge of PHP.

I just want to know is theres a simple way to return a primary key
value for a record I've just inserted?

In other environments I'd set a flag using the current time stamp which
is inserted with the record.

Then I'd select on that timestamp and get the primary key value.

Is there a simpler way?

Jules.

 

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

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