note 22626 added to function.mysql-insert-id
| From: | miguel at bec-NOSPAM-as dot com | Date: | Tue, 25 Jun 2002 16:36:43 +0000 |
| Subject: | note 22626 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32180@lists.php.net to get a copy of this message | ||
If you have two connections
mysql_insert_id(); without params returns the last insert in the last connection NOT the last ID
from the last insert.
Cheers
Miguel Angel Ferrero
--
http://www.php.net/manual/en/function.mysql-insert-id.php
http://master.php.net/manage/user-notes.php?action=edit+22626
http://master.php.net/manage/user-notes.php?action=delete+22626
http://master.php.net/manage/user-notes.php?action=reject+22626