Re: mysql_error function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Niel Archer wrote:
> 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.
>

OK, so there is no way how to get error message about mysql_connect()
function when establishing more connections?

The strange thing is, that it works fine if You use just one connection. In
this case, mysql_error() function can takes error message from the
mysql_connect() function...

>
> Niel

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux