Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 568

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>fbsql_error</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="FrontBase Functions"
HREF="ref.fbsql.html"><LINK
REL="PREVIOUS"
TITLE="fbsql_errno"
HREF="function.fbsql-errno.html"><LINK
REL="NEXT"
TITLE="fbsql_fetch_array"
HREF="function.fbsql-fetch-array.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></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 de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.fbsql-errno.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.fbsql-fetch-array.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.fbsql-error"
></A
>fbsql_error</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN17736"
></A
><P
>    (PHP 4 &#62;= 4.0.6)</P
>fbsql_error&nbsp;--&nbsp;
     Returns the text of the error message from previous FrontBase
     operation
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN17739"
></A
><H2
>Description</H2
>string <B
CLASS="methodname"
>fbsql_error</B
> ( [resource link_identifier])<BR
></BR
><P
>&#13;     Returns the error text from the last fbsql function, or
     <TT
CLASS="literal"
>''</TT
> (the empty string) if no error occurred.
    </P
><P
>&#13;     Errors coming back from the fbsql database backend don't issue
     warnings. Instead, use <B
CLASS="function"
>fbsql_error()</B
> to
     retrieve the error text. Note that this function only returns the
     error text from the most recently executed fbsql function (not
     including <B
CLASS="function"
>fbsql_error()</B
> and
     <A
HREF="function.fbsql-errno.html"
><B
CLASS="function"
>fbsql_errno()</B
></A
>), so if you want to use it, make
     sure you check the value before calling another fbsql function.
     <DIV
CLASS="informalexample"
><A
NAME="AEN17753"
></A
><P
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php
fbsql_connect("marliesle");
echo fbsql_errno().": ".fbsql_error()."&#60;BR&#62;";
fbsql_select_db("nonexistentdb");
echo fbsql_errno().": ".fbsql_error()."&#60;BR&#62;";
$conn = fbsql_query("SELECT * FROM nonexistenttable;");
echo fbsql_errno().": ".fbsql_error()."&#60;BR&#62;";
?&#62;</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
>
    </P
><P
> 
     See also: <A
HREF="function.fbsql-errno.html"
><B
CLASS="function"
>fbsql_errno()</B
></A
> and
     <A
HREF="function.fbsql-warnings.html"
><B
CLASS="function"
>fbsql_warnings()</B
></A
>.
    </P
></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.fbsql-errno.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.fbsql-fetch-array.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>fbsql_errno</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.fbsql.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>fbsql_fetch_array</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>