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

From: Date: Sun, 16 Feb 2020 13:25:10 +0000
Subject: note 52650 deleted from function.mysql-insert-id by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214110@lists.php.net to get a copy of this message
Note Submitter: ed at is-cool dot net ---- Beware, mysql_insert_id() only returns the value of the last syntaxically correct insert statement. If your code has a problem and the insert is not understood by the server then the value of the last working insert command is returned. Put something else in place such as "select count( id ) from table" before and after the mysql_insert_id() call to ensure that a row was inserted.

« previous php.notes (#214110) next »