Re: mysql_error function

From: Date: Fri, 06 Oct 2006 14:06:19 +0000
Subject: Re: mysql_error function
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-42497@lists.php.net to get a copy of this message
Hi > OK, so mysql_error is not usable for me in this case. > Is in PHP any other way how to get error-message from connect function? > Isn't in PHP any other function, that can be used similiar? To the best of my knowledge, there is no work around for this situation. Even the 'Improved' MySQL Extension suffers this same limitation, so no improvement there. You can of course still determine failure, but not directly the cause. The only ways I can think of to begin identifying the error would be to look up supplied username/password with the MySQL permissions db to verify their authenticity, or to close the first connection and retry the second after so it is the only connection. Niel

« previous php.db (#42497) next »