note 49670 added to function.ifx-errormsg

From: Date: Fri, 04 Feb 2005 12:45:33 +0000
Subject: note 49670 added to function.ifx-errormsg
Groups: php.notes 
Request: Send a blank email to php-notes+get-84516@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.ifx-errormsg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49670 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49670&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49670&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49670&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49670&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49670&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49670&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84516) next »