note 36203 added to function.mysql-insert-id

From: Date: Tue, 30 Sep 2003 20:25:00 +0000
Subject: note 36203 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-57510@lists.php.net to get a copy of this message
@note: mark at wildrhino dot com 24-Jun-2001 10:38 Result of mysql_insert_id() or LAST_INSERT_ID() is logical, although names of these two can be a little confusing. These functions return last generated auto-increment value, but not genertated and inserted one. Engine must generate a value first, then it checks for any data contradictions when a record is being added. If so, adding if this record fails and the value is useless. According to this, the "INSERT" part means SQL's INSERT statement, not operation itself. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36203 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36203&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36203&report=yes

« previous php.notes (#57510) next »