PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_fetch_row> <ifx_error
Last updated: Fri, 04 Jul 2008

view this page in

ifx_errormsg

(No version information available, might be only in CVS)

ifx_errormsg — Devuelve el mensaje de error de la última llamada a Informix

Descripción

string ifx_errormsg ([ int $errorcode ] )

Devuelve el mensaje de error asociado con el error más reciente de Informix. Si definismos el parámetro opcional "errorcode " (código de error), nos dará el mensaje de error correspondiente a ese código.

Example #1 Ejemplo de ifx_errormsg()

printf("%s\n<br />", ifx_errormsg(-201));

Vea también ifx_error().



add a note add a note User Contributed Notes
ifx_errormsg
monts at netcabo dot pt
30-Mar-2005 01:03
The support for message-strings send by triggers is not implemented.

The common error send by triggers is the -746.
In the sqlerrm is the message for the error returned from a trigger.

This driver does not take this in mind.

Sorry for my bad english...

J. Montenegro
sven at sveni dot com
04-Feb-2005 01:45
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

ifx_fetch_row> <ifx_error
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites