You are here: Re: acquiring value of primary key from uploaded file « PHP Programming Language « IT news, forums, messages
Re: acquiring value of primary key from uploaded file

Posted by Rik on 12/17/75 11:53

frizzle wrote:
> Rik wrote:
>> Chris wrote:
>>>> I believe you're looking for mysql_last_insert_id()
>>>>
>>> Thanks - that makes sense, I'll give it a try. Hard to find all the
>>> built-in functions - I had seen mysql_insert_id, but hadn't seen
>>> this one.
>>
>>
>> That's because mysql_last_insert_id() is not a PHP function. Frizzle
>> was unfortunately on the fritz. mysql_insert_id() it is, which
>> should work
>>
>> Grtz,
>> --
>> Rik Wasmus
>
> I assume the result to be equal.
> Would mysql_insert_id() still require a DB connection to be open?

Yes. It's result isn't cached after a query in PHP, but queried from the
database itself.

Grtz,
--
Rik Wasmus

 

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

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