You are here: Re: returning autogenerated ID on new item « PHP Programming Language « IT news, forums, messages
Re: returning autogenerated ID on new item

Posted by Andy Hassall on 01/05/07 22:28

On 5 Jan 2007 14:25:01 -0800, "toodi4" <toodi4@hotmail.com> wrote:

>Lets say you have a form that when saved to the mysql database creates
>a unique incremental id.

So, you have an auto_increment primary key?

>The form is just the first part of a series
>of things the user can do, so once the ID is created, the page would
>need to know immediately what this ID is. Is there a way to grab this
>ID instantly once it is created?

http://php.net/results.php?q=auto_increment

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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