Re: mysql_error function

From: Date: Tue, 03 Oct 2006 17:28:34 +0000
Subject: Re: mysql_error function
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42457@lists.php.net to get a copy of this message
Hi > The error message for second connection request is not given back to the > PHP. Or as I suppose, mysql_error takes last error message from last used > ESTABLISHED connection (it means from $link1) and since in this connection > was everything ok, it puts empty string as a result of mysql_error function. This is incorrect. mysql_error() retreives the error message from the last mysql function (excluding itself or mysql_errno) executed, not the last connection. Niel

« previous php.db (#42457) next »