23.10.2016, 11:58
use:
handle = the mysql handle;
This condition will be true if the connection was successful.
PHP код:
if(handle && mysql_errno(handle) == 0)
This condition will be true if the connection was successful.