(PECL maxdb >= 1.0)
Returns the error code from last connect call
int maxdb_connect_errno ( void )
The maxdb_connect_errno() function will return the last error code number for last call to maxdb_connect(). If no errors have occurred, this function will return zero.
Returns:
An error code value for the last call to maxdb_connect(), if it failed. zero means no error occurred.
Examples:
maxdb_connect_errno sample
1 2 3 4 5 6 7 | <?php $link = maxdb_connect( "localhost" , "XXXXXXXX" , "YYYYYYYYY" ); if (! $link ) { printf( "Can't connect to localhost. Errorcode: %d\n" , maxdb_connect_errno()); } ?> |
See also:
Please login to continue.