note 78439 deleted from function.mysql-insert-id by cmb

From: Date: Sun, 16 Feb 2020 13:41:42 +0000
Subject: note 78439 deleted from function.mysql-insert-id by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214130@lists.php.net to get a copy of this message
Note Submitter: benfoldsforever ---- 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);

« previous php.notes (#214130) next »