Detect db
#1

Hello. Any idea that can detect if the connection to the database failed?
I thought the onqueryerror to monitor errors and if more then it has failed. What are you saying?
Reply
#2

use:

PHP код:
if(handle && mysql_errno(handle) == 0
handle = the mysql handle;

This condition will be true if the connection was successful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)