Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 4240

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>sesam_num_fields</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="SESAM Database Functions"
HREF="ref.sesam.html"><LINK
REL="PREVIOUS"
TITLE="sesam_free_result"
HREF="function.sesam-free-result.html"><LINK
REL="NEXT"
TITLE="sesam_query"
HREF="function.sesam-query.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></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 do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.sesam-free-result.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.sesam-query.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.sesam-num-fields"
></A
>sesam_num_fields</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN202453"
></A
><P
>    (PHP 3 CVS only)</P
>sesam_num_fields&nbsp;--&nbsp;Return the number of fields/columns in a result set</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202456"
></A
><H2
>Descrição</H2
>int <B
CLASS="methodname"
>sesam_num_fields</B
> ( string result_id )<BR
></BR
><P
>&#13;   After calling <A
HREF="function.sesam-query.html"
><B
CLASS="function"
>sesam_query()</B
></A
> with a "select
   type" query, this function gives you the number of columns in the
   result.  
  </P
><P
>&#13;   For "immediate" statements, the value zero is returned. The SESAM
   "multiple field" columns count as their respective dimension,
   i.e., a three-column "multiple field" counts as three columns.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202467"
></A
><H2
>Parâmetros</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>result_id</CODE
></DT
><DD
><P
>&#13;       A valid result id returned by <A
HREF="function.sesam-query.html"
><B
CLASS="function"
>sesam_query()</B
></A
>.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202477"
></A
><H2
>Valores de retornado</H2
><P
>&#13;   Returns an integer describing the total number of columns (aka. fields) in
   the current <CODE
CLASS="parameter"
>result_id</CODE
> result set or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on
   error.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN202482"
></A
><H2
>Veja também</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.sesam-query.html"
><B
CLASS="function"
>sesam_query()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.sesam-field-array.html"
><B
CLASS="function"
>sesam_field_array()</B
></A
> for a way to distinguish
     between "multiple field" columns and regular columns.</TD
></TR
></TBODY
></TABLE
><P
></P
>
  </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.sesam-free-result.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.sesam-query.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>sesam_free_result</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.sesam.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>sesam_query</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>