note 81264 deleted from function.mysql-insert-id by cmb
| From: | cmb@php.net | Date: | Sun, 16 Feb 2020 13:40:48 +0000 |
| Subject: | note 81264 deleted from function.mysql-insert-id by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214127@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Why on earth are you all arguing about the best way to get the next auto_increment value? The whole
point is that it increments automatically. The name should be a give away.
Don't calculate the next id, just leave the field blank and let the database issue the id
itself.