note 36203 deleted from function.mysql-insert-id by didou

From: Date: Wed, 01 Oct 2003 08:23:55 +0000
Subject: note 36203 deleted from function.mysql-insert-id by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57523@lists.php.net to get a copy of this message
Note Submitter: yooras@zillion.pl ---- @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.

« previous php.notes (#57523) next »