note 49670 deleted from function.ifx-errormsg by cmb
| From: | cmb@php.net | Date: | Wed, 04 Nov 2020 21:22:23 +0000 |
| Subject: | note 49670 deleted from function.ifx-errormsg by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215804@lists.php.net to get a copy of this message | ||
Note Submitter: sven at sveni dot com
----
Nice function to call. Very helpfull if you want to use in combination with an own ErrorHandler. But
informix error recognition seems just to work directly after calling a informix function.
/**
* checks weater error has occured or not
* @return false if no error, else error message
*/
function db_error_occured()
{
$err_code = ifx_error();
if (substr($err_code,0,1) != ' ') {
return ifx_errormsg();
}
else {
return false;
}
} //db_error_occured