Re: mysql_insert_id?
| From: | mike cullerton | Date: | Wed, 16 Jan 2002 15:24:48 +0000 |
| Subject: | Re: mysql_insert_id? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80722@lists.php.net to get a copy of this message | ||
on 1/16/02 7:42 AM, Martin Wickman at wizball@hotbrev.com wrote:
> Dl Neil wrote:
>
>> 2 because the (function argument) controlling feature is the connection, it
>> is not possible for another
>> concurrent user to 'steal' your ID or influence the ID returned to you -
>> it's
>> all yours!
>
> Ok, assume you are correct, but what if you are using persistent
> connections (ie pconnet)?
>
it's still 'your' persistent connection that's being queried though. from
the manual on mysql_pconnect
Returns a positive MySQL persistent link identifier on success
this is why you use the link identifier in things like mysql_query, and lets
mysql 'know' what 'your' last insert was.
hope this helps,
mike
-- mike cullerton michaelc at cullerton dot com