Query: fbsql_errno
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FBSQL_ERRNO(3) 1 FBSQL_ERRNO(3) fbsql_errno - Returns the error number from previous operationSYNOPSISint fbsql_errno ([resource $link_identifier])DESCRIPTIONReturns the numerical value of the error message from previous FrontBase operation. Errors coming back from the fbsql database backend don't issue warnings. Instead, use fbsql_errno(3) to retrieve the error code. Note that this function only returns the error code from the most recently executed fbsql function (not including fbsql_error(3) and fbsql_errno(3)), so if you want to use it, make sure you check the value before calling another fbsql function.PARAMETERSo $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments.RETURN VALUESReturns the error number from the last fbsql function, or 0 (zero) if no error occurred.EXAMPLESExample #1 fbsql_errno(3) Example <?php fbsql_connect("marliesle"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; fbsql_select_db("nonexistentdb"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; ?>SEE ALSOfbsql_error(3), fbsql_warnings(3). PHP Documentation Group FBSQL_ERRNO(3)
Related Man Pages |
---|
dbx_connect(3) - php |
fbsql_fetch_field(3) - php |
fbsql_read_clob(3) - php |
ldap_set_option(3) - php |
mysql_drop_db(3) - php |
Similar Topics in the Unix Linux Community |
---|
How to fix :[too many arguments error in code |