Posted by Bart op de grote markt on 11/17/06 13:11
>
> Yes, it is perfectly safe. The returned value is the id of the last
> insert for that connection.
>
> As for using session variables - you're talking apples and oranges. How
> do you expect to get the id to store it in the session variable? That's
> what mysql_insert_id() is for. Once you get the id you can place it in
> a session variable, store it someplace else or whatever you want.
>
> P.S. Please don't top post. Thanks.
Of course I don't expect to put the id in a session variable. That is
not what I said, is it...
Navigation:
[Reply to this message]
|