ID: 17049 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: MySQL related Operating System: FreeBSD PHP Version: 4.1.2 New Comment:
I think you meant mysql_insert_id(), right? Previous Comments: ------------------------------------------------------------------------ [2002-05-06 15:34:55] [EMAIL PROTECTED] when mysql_insert_db is used without a parameter, as in mysql_insert_db(), it seems to always return 0 instead of the primary key of the most recent insert. It works fine when the db_link is provided as a parameter. Same problem in PHP 4.0.6 running on Linux. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17049&edit=1