note 85427 added to function.mysql-insert-id

From: Date: Fri, 29 Aug 2008 15:25:31 +0000
Subject: note 85427 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-143985@lists.php.net to get a copy of this message
"Don't calculate the next id, just leave the field blank and let the database issue the id itself." Perhaps you need the last given ID after INSERT... so do i. anyway requesting the last given ID does not calculate the next ID, it reports the ID from the DBSystem which is 100% safe and 100% correct. ---- Server IP: 217.160.72.57 Probable Submitter: 89.12.63.41 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/85427 Del: integrated -- https://master.php.net/note/delete/85427/integrated Del: useless -- https://master.php.net/note/delete/85427/useless Del: bad code -- https://master.php.net/note/delete/85427/bad+code Del: spam -- https://master.php.net/note/delete/85427/spam Del: non-english -- https://master.php.net/note/delete/85427/non-english Del: in docs -- https://master.php.net/note/delete/85427/in+docs Del: other reasons-- https://master.php.net/note/delete/85427 Reject -- https://master.php.net/note/reject/85427 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143985) next »