note 24335 added to function.mysql-insert-id
| From: | jcaudill at vigor dot net | Date: | Tue, 13 Aug 2002 16:31:49 +0000 |
| Subject: | note 24335 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34939@lists.php.net to get a copy of this message | ||
Be safe: Run a "SELECT MAX(id) FROM yourtable" and save the results into a variable. The
mysql_insert_id() function is really not safe.
--
http://www.php.net/manual/en/function.mysql-insert-id.php
http://master.php.net/manage/user-notes.php?action=edit+24335
http://master.php.net/manage/user-notes.php?action=delete+24335
http://master.php.net/manage/user-notes.php?action=reject+24335