note 79720 added to function.mysql-insert-id
| From: | conrad at rdsmail dot ro | Date: | Mon, 10 Dec 2007 12:05:46 +0000 |
| Subject: | note 79720 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133145@lists.php.net to get a copy of this message | ||
using max to get autoincrement value, like in the mentioned previous_id function, is dead wrong.
id
1
2
3
delete id=3 and see if the previous_id function return the correct autoincrement id, 4
----
Server IP: 69.147.83.197
Probable Submitter: 82.76.21.22
----
Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php
Edit -- https://master.php.net/note/edit/79720
Del: integrated -- https://master.php.net/note/delete/79720/integrated
Del: useless -- https://master.php.net/note/delete/79720/useless
Del: bad code -- https://master.php.net/note/delete/79720/bad+code
Del: spam -- https://master.php.net/note/delete/79720/spam
Del: non-english -- https://master.php.net/note/delete/79720/non-english
Del: in docs -- https://master.php.net/note/delete/79720/in+docs
Del: other reasons-- https://master.php.net/note/delete/79720
Reject -- https://master.php.net/note/reject/79720
Search -- https://master.php.net/manage/user-notes.php