note 81264 added to function.mysql-insert-id

From: Date: Wed, 20 Feb 2008 16:45:23 +0000
Subject: note 81264 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-136316@lists.php.net to get a copy of this message
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. ---- Server IP: 83.170.119.58 Probable Submitter: 212.44.25.28 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/81264 Del: integrated -- https://master.php.net/note/delete/81264/integrated Del: useless -- https://master.php.net/note/delete/81264/useless Del: bad code -- https://master.php.net/note/delete/81264/bad+code Del: spam -- https://master.php.net/note/delete/81264/spam Del: non-english -- https://master.php.net/note/delete/81264/non-english Del: in docs -- https://master.php.net/note/delete/81264/in+docs Del: other reasons-- https://master.php.net/note/delete/81264 Reject -- https://master.php.net/note/reject/81264 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136316) next »