PHP Manualcubrid_error_code(PECL CUBRID >= 8.3.0) cubrid_error_code — Get error code for the most recent function call Description
int cubrid_error_code
( void
)
The cubrid_error_code() function is used to get the error code of the error that occurred during the API execution. Usually, it gets the error code when API returns false as its return value. ParametersThis function has no parameters. Return ValuesError code of the error that occurred, or 0 (zero) if no error occurred.
ExamplesExample #1 cubrid_error_code() example
<?php The above example will output: Error facility: 4 Error code: -2015 Error msg: Some parameter not binded See Also
![]() |
PHP-Index
New Tutorial entries
|