note 104948 added to function.mysql-insert-id

From: Date: Mon, 18 Jul 2011 13:37:07 +0000
Subject: note 104948 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-181636@lists.php.net to get a copy of this message
@JESSE Between the time of adding your row to the database, and fetching the id with your method, more data could be added to the database. This will result in you receiving the wrong id. ---- Server IP: 69.147.83.197 Probable Submitter: 213.201.203.19 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/104948 Del: integrated -- https://master.php.net/note/delete/104948/integrated Del: useless -- https://master.php.net/note/delete/104948/useless Del: bad code -- https://master.php.net/note/delete/104948/bad+code Del: spam -- https://master.php.net/note/delete/104948/spam Del: non-english -- https://master.php.net/note/delete/104948/non-english Del: in docs -- https://master.php.net/note/delete/104948/in+docs Del: other reasons-- https://master.php.net/note/delete/104948 Reject -- https://master.php.net/note/reject/104948 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181636) next »