Last updated: Fri, 09 May 2003


(PHP 4 >= 4.1.0)

aspseek_errno --  Returns the numerical value of the error message from previous ASPseek operation


int aspseek_errno ( [resource link_identifier])

Returns the error number from the last ASPseek function, or 0 (zero) if no error occurred.

Note that this function only returns the error code from the most recently executed ASPseek function (not including aspseek_error() and aspseek_errno()), so if you want to use it, make sure you check the value before calling another ASPseek function.

Example 1. aspseek_errno() example

    echo aspseek_errno() . ": " . aspseek_error(). "\n";

    echo aspseek_errno() . ": " . aspseek_error() . "\n";

The above example would produce the following output:

1001: Unknown server host 'nonexistenthost'
1016: Unmatched string quote


If the optional argument is specified the given link is used to retrieve the error code. If not, the last opened link is used.

See also: aspseek_error()

 Last updated: Fri, 09 May 2003