note 17516 added to function.mysql-insert-id
| From: | normenbe at gmx dot de | Date: | Wed, 12 Dec 2001 17:52:24 +0000 |
| Subject: | note 17516 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22545@lists.php.net to get a copy of this message | ||
be careful!
if you try to insert an existing value on an unique field (with an auto_increment primary key),
mysql (3.23.42) returns the next auto_increment value as insert id (which isn't valid!).
--
http://www.php.net/manual/en/function.mysql-insert-id.php
http://master.php.net/manage/user-notes.php?action=edit+17516
http://master.php.net/manage/user-notes.php?action=delete+17516
http://master.php.net/manage/user-notes.php?action=reject+17516