Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 2382

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>ocierror</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Oracle 8 functions"
HREF="ref.oci8.html"><LINK
REL="PREVIOUS"
TITLE="ocidefinebyname"
HREF="function.ocidefinebyname.html"><LINK
REL="NEXT"
TITLE="ociexecute"
HREF="function.ociexecute.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ocidefinebyname.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ociexecute.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.ocierror"
></A
>ocierror</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN83572"
></A
><P
>    (PHP 3&#62;= 3.0.7, PHP 4 , PHP 5)</P
>ocierror&nbsp;--&nbsp;Return the last error of stmt|conn|global</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN83575"
></A
><H2
>Description</H2
>array <B
CLASS="methodname"
>ocierror</B
> ( [resource stmt|conn|global])<BR
></BR
><P
>&#13;     <B
CLASS="function"
>ocierror()</B
> returns the last error found.  If
     the optional <VAR
CLASS="parameter"
>stmt|conn|global</VAR
> is not
     provided, the last error encountered is returned.  If no error is
     found, <B
CLASS="function"
>ocierror()</B
> returns
     <TT
CLASS="constant"
><B
>FALSE</B
></TT
>. <B
CLASS="function"
>ocierror()</B
> returns the error as an
     associative array. In this array, <VAR
CLASS="literal"
>code</VAR
>
     consists the oracle error code and <VAR
CLASS="literal"
>message</VAR
>
     the oracle errorstring.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>As of PHP 4.3: </B
>
      <VAR
CLASS="literal"
>offset</VAR
> and <VAR
CLASS="literal"
>sqltext</VAR
> will
      also be included in the return array to indicate the location
      of the error and the original SQL text which caused it.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
      This function was renamed to <A
HREF="function.oci-error.html"
><B
CLASS="function"
>oci_error()</B
></A
> 
      after PHP &#62;= 5.0.0. For downward compatibility 
      <B
CLASS="function"
>ocierror()</B
> can also be used. 
      This is deprecated, however.
     </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ocidefinebyname.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.ociexecute.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ocidefinebyname</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.oci8.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ociexecute</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>