Bug #14106 Updated: mysql_insert_id() fails

From: Date: Mon, 19 Nov 2001 09:44:45 +0000
Subject: Bug #14106 Updated: mysql_insert_id() fails
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70873@lists.php.net to get a copy of this message
ID: 14106 Updated by: derick Reported By: Henry.Ristau@fh-stralsund.de Old Status: Open Status: Bogus Bug Type: MySQL related Operating System: SuSe Linux 7.3 PHP Version: 4.0.6 New Comment: It still does, but you need to give it a LINK identifier as parameter, and not a MySQL Result identifier. Script is buggy > bogus Previous Comments: ------------------------------------------------------------------------ [2001-11-19 04:42:35] Henry.Ristau@fh-stralsund.de i do something like this: $result=mysql_query($query, $dblink); if(! $result) die($query); $messageid=mysql_insert_id($result); it worked with older versions of php but fails reporting "Supplied argument is not a valid MySQL-Link resource" now even if the query is inserted sucessfull. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14106&edit=1

« previous php.dev (#70873) next »