Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>ibase_num_fields</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="Firebird/InterBase Functions"
HREF="ref.ibase.html"><LINK
REL="PREVIOUS"
TITLE="ibase_name_result"
HREF="function.ibase-name-result.html"><LINK
REL="NEXT"
TITLE="ibase_num_params"
HREF="function.ibase-num-params.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.ibase-name-result.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ibase-num-params.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.ibase-num-fields"
></A
>ibase_num_fields</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN45679"
></A
><P
>    (PHP 3&#62;= 3.0.7, PHP 4 , PHP 5)</P
>ibase_num_fields&nbsp;--&nbsp;
     Get the number of fields in a result set
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN45682"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>ibase_num_fields</B
> ( resource result_id)<BR
></BR
><P
>&#13;     Returns an integer containing the number of fields in a result
     set.
     <DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN45691"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;$rs </font><font color="#007700">= </font><font color="#0000BB">ibase_query</font><font color="#007700">(</font><font color="#DD0000">"SELECT * FROM tablename"</font><font color="#007700">); <br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$coln </font><font color="#007700">= </font><font color="#0000BB">ibase_num_fields</font><font color="#007700">(</font><font color="#0000BB">$rs</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;for (</font><font color="#0000BB">$i </font><font color="#007700">= </font><font color="#0000BB">0</font><font color="#007700">; </font><font color="#0000BB">$i </font><font color="#007700">&lt; </font><font color="#0000BB">$coln</font><font color="#007700">; </font><font color="#0000BB">$i</font><font color="#007700">++) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$col_info </font><font color="#007700">= </font><font color="#0000BB">ibase_field_info</font><font color="#007700">(</font><font color="#0000BB">$rs</font><font color="#007700">, </font><font color="#0000BB">$i</font><font color="#007700">); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"name: " </font><font color="#007700">. </font><font color="#0000BB">$col_info</font><font color="#007700">[</font><font color="#DD0000">'name'</font><font color="#007700">] . </font><font color="#DD0000">"\n"</font><font color="#007700">; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"alias: " </font><font color="#007700">. </font><font color="#0000BB">$col_info</font><font color="#007700">[</font><font color="#DD0000">'alias'</font><font color="#007700">] . </font><font color="#DD0000">"\n"</font><font color="#007700">; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"relation: " </font><font color="#007700">. </font><font color="#0000BB">$col_info</font><font color="#007700">[</font><font color="#DD0000">'relation'</font><font color="#007700">] . </font><font color="#DD0000">"\n"</font><font color="#007700">; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"length: " </font><font color="#007700">. </font><font color="#0000BB">$col_info</font><font color="#007700">[</font><font color="#DD0000">'length'</font><font color="#007700">] . </font><font color="#DD0000">"\n"</font><font color="#007700">; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </font><font color="#DD0000">"type: " </font><font color="#007700">. </font><font color="#0000BB">$col_info</font><font color="#007700">[</font><font color="#DD0000">'type'</font><font color="#007700">] . </font><font color="#DD0000">"\n"</font><font color="#007700">; <br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
><P
></P
></DIV
>
    </P
><P
>&#13;     See also: <A
HREF="function.ibase-field-info.html"
><B
CLASS="function"
>ibase_field_info()</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.ibase-name-result.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.ibase-num-params.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ibase_name_result</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.ibase.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ibase_num_params</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>