Re: mysql_insert_id?
| From: | Jimmy | Date: | Wed, 16 Jan 2002 20:01:11 +0000 |
| Subject: | Re: mysql_insert_id? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80807@lists.php.net to get a copy of this message | ||
Hi DL,
> ="session" is not the correct word/its use is potentially confusing
> (perhaps that's why it's in quotes?) - persistence refers to the
> continuing connection between PHP and MySQL.
yup, you're right.
session is not the correct word, but i can't find the
correct/easy word to subtitute session, so i just use session
but put it inside quotes :)
> 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...:)
nice discussion, Neil :)
--
Jimmy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buy Land. They've stopped making it.