php man page for fbsql_error

Query: fbsql_error

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FBSQL_ERROR(3)								 1							    FBSQL_ERROR(3)

fbsql_error - Returns the error message from previous operation

SYNOPSIS
string fbsql_error ([resource $link_identifier])
DESCRIPTION
Returns the error message from previous FrontBase operation. Errors coming back from the fbsql database backend don't issue warnings. Instead, use fbsql_error(3) to retrieve the error text. 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.
PARAMETERS
o $ 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 VALUES
Returns the error text from the last fbsql function, or '' (the empty string) if no error occurred.
EXAMPLES
Example #1 fbsql_error(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 ALSO
fbsql_errno(3), fbsql_warnings(3). PHP Documentation Group FBSQL_ERROR(3)
Related Man Pages
mysql_errno(3) - php
mysql_list_tables(3) - php
fbsql_fetch_array(3) - php
fbsql_read_blob(3) - php
mysql_db_query(3) - php
Similar Topics in the Unix Linux Community
string operation