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 Jerry Stuckle on 11/05/77 11:53

frizzle wrote:
> Jerry Stuckle wrote:
>
>>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?
>>>
>>>Frizzle.
>>>
>>
>>Yes, it's a MySQL call.
>>
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstucklex@attglobal.net
>>==================
>
>
> So you'd have to run another extra call to the database, instead of
> getting it from cache ?
> Wouldn't that make it slower?
> Not quite getting this, but liked to know how it works ...
>
> Frizzle
>

Yes, because it isn't returned so there's no cache to store it in.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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