note 78439 added to function.mysql-insert-id

From: Date: Fri, 12 Oct 2007 03:04:15 +0000
Subject: note 78439 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-131326@lists.php.net to get a copy of this message
Just wanted to re-iterate previous comment on receiving NULL or 0 return statement from calling mysql_insert_id() after insert statement. If you have multiple mysql connections (i.e. mysql_connect() or mysqli_connect()) on the page you will need to specify the the connection you are using when calling this function! I.e. mysql_insert_id($MY_CONN); ---- Server IP: 69.147.83.197 Probable Submitter: 203.6.132.1 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/78439 Del: integrated -- https://master.php.net/note/delete/78439/integrated Del: useless -- https://master.php.net/note/delete/78439/useless Del: bad code -- https://master.php.net/note/delete/78439/bad+code Del: spam -- https://master.php.net/note/delete/78439/spam Del: non-english -- https://master.php.net/note/delete/78439/non-english Del: in docs -- https://master.php.net/note/delete/78439/in+docs Del: other reasons-- https://master.php.net/note/delete/78439 Reject -- https://master.php.net/note/reject/78439 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131326) next »