note 83193 rejected from function.mysql-insert-id by felipe

From: Date: Sat, 24 May 2008 00:14:26 +0000
Subject: note 83193 rejected from function.mysql-insert-id by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139682@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Very annoying bug I encountered! echo mysql_insert_id(); //will sometimes print out zero but with the same code: echo mysql_insert_id($dbh); //always prints out the correct id

« previous php.notes (#139682) next »