maxdb_connect_errno

(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:

maxdb_connect() -

maxdb_connect_error() -

maxdb_errno() -

maxdb_error() -

maxdb_sqlstate() -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.