Description
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 <?php
aspseek_connect("nonexistenthost");
echo aspseek_errno() . ": " . aspseek_error(). "\n";
aspseek_connect("localhost");
aspseek_query("unmatchedquote\"");
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()