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);
Tech Tips and Tricks
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);