mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
* docs for odbc_error() and odbc_errormsg()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@39492 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9ecbf4f9c1
commit
dc4efd6634
1 changed files with 53 additions and 0 deletions
|
@ -367,6 +367,59 @@
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.odbc-error">
|
||||
<refnamediv>
|
||||
<refname>odbc_error</refname>
|
||||
<refpurpose>Get the last error code</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>odbc_error</function></funcdef>
|
||||
<paramdef>int <parameter><optional>connection_id</optional></parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
Returns a six-digit ODBC state, or an empty string if there
|
||||
has been no errors. If <parameter>connection_id</parameter> is
|
||||
specified, the last state of that connection is returned, else the
|
||||
last state of any connection is returned.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also: <function>odbc_errormsg</function> and
|
||||
<function>odbc_exec</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.odbc-errormsg">
|
||||
<refnamediv>
|
||||
<refname>odbc_errormsg</refname>
|
||||
<refpurpose>Get the last error message</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>odbc_errormsg</function></funcdef>
|
||||
<paramdef>int <parameter><optional>connection_id</optional></parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
Returns a string containing the last ODBC error message, or an empty
|
||||
string if there has been no errors. If
|
||||
<parameter>connection_id</parameter> is specified, the last state of
|
||||
that connection is returned, else the last state of any connection
|
||||
is returned.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also: <function>odbc_error</function> and
|
||||
<function>odbc_exec</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.odbc-exec">
|
||||
<refnamediv>
|
||||
<refname>odbc_exec</refname>
|
||||
|
|
Loading…
Reference in a new issue