mysql_insert_id() returns NULL or 0
February 29, 2008 · Posted in php
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.
example:
mysql_insert_id($MY_CONN);
Comments
Leave a Reply
