Re: mysql_insert_id?
| From: | DL Neil | Date: | Wed, 16 Jan 2002 20:57:29 +0000 |
| Subject: | Re: mysql_insert_id? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.db php.general |
| Request: | Send a blank email to php-db+get-15895@lists.php.net to get a copy of this message | ||
Jimmy,
> > However it is also possible that in order to save time the LAST_ID
> > information is built into the resultset coming back from the INSERT -
> > thus when mysql_insert_id() is called PHP would not need to go back
> > to MySQL/last_insert_id().
>
> yes, what you said could be true also.
>
> Well, there's only one way to be sure how mysql_insert_id() works...read
> the source code of PHP :) but unfortunately I dont have the source code,
> and even if I do, I won't read it, because I am lousy at reading someone's
> code...:)
=or run a script to perform an INSERT, then pause, eg go to a form, and whilst nothing's
happening take the
MySQL server offline, then restart the script by returning from the form, and execute the call...
=I can't do this because my portable runs everything on one box (dev and prod and...).
> nice discussion, Neil :)
=thinking that stretches the mind!
=dn