|
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]
|