Re: mysql_insert_id() & CGI
| From: | Rasmus Lerdorf | Date: | Tue, 03 Apr 2001 14:56:30 +0000 |
| Subject: | Re: mysql_insert_id() & CGI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46821@lists.php.net to get a copy of this message | ||
> When I go from using mysql_insert_id() with the module to using it with
> PHP as CGI it fails because I always provide a link identifier as the
> argument.
>
> When I remove the link identifier it works again.
>
> But that seems risky to me. If I have concurrent users couldn't one
> user finish a query, another user do another query, and then the first
> user's mysql_insert_id function produce the wrong result?
No
-Rasmus