note 71949 added to function.mysql-insert-id

From: Date: Mon, 25 Dec 2006 18:44:11 +0000
Subject: note 71949 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-120899@lists.php.net to get a copy of this message
Please be warned that this function, like almost every other MySQL function, requires that the same database resource link that was used to insert the data into the database be used to get the last auto increment value. If you close the database connection after inserting data, then open one up again and then attempt to get the last auto increment value, you will get an incorrect value since all resources related to the last insert query were cleaned up after the connection was closed. ---- Server IP: 66.163.161.117 Probable Submitter: 84.36.231.206 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/71949 Del: integrated -- https://master.php.net/note/delete/71949/integrated Del: useless -- https://master.php.net/note/delete/71949/useless Del: bad code -- https://master.php.net/note/delete/71949/bad+code Del: spam -- https://master.php.net/note/delete/71949/spam Del: non-english -- https://master.php.net/note/delete/71949/non-english Del: in docs -- https://master.php.net/note/delete/71949/in+docs Del: other reasons-- https://master.php.net/note/delete/71949 Reject -- https://master.php.net/note/reject/71949 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120899) next »