Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ebb1914cf182a88528b4547490db1dd8 > files > 836

kdewebdev-quanta-doc-3.5.9-2mdv2008.1.x86_64.rpm

<HTML
><HEAD
><TITLE
>ifx_fieldtypes</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="manual.html"><LINK
REL="UP"
TITLE="Informix functions"
HREF="ref.ifx.html"><LINK
REL="PREVIOUS"
TITLE="ifx_htmltbl_result"
HREF="function.ifx-htmltbl-result.html"><LINK
REL="NEXT"
TITLE="ifx_fieldproperties"
HREF="function.ifx-fieldproperties.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ifx-htmltbl-result.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ifx-fieldproperties.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.ifx-fieldtypes"
>ifx_fieldtypes</A
></H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN14193"
></A
>ifx_fieldtypes -- List of Informix SQL fields</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14196"
></A
><H2
>Description</H2
><DIV
CLASS="funcsynopsis"
><P
></P
><CODE
CLASS="FUNCDEF"
>array ifx_fieldtypes</CODE
>(int result_id);<P
></P
></DIV
><P
>&#13;     Returns an associative array with fieldnames as key and the SQL
     fieldtypes as data for query with
     <TT
CLASS="parameter"
><I
>result_id</I
></TT
>.  Returns FALSE on error.
    </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><P
><B
>Example 1. Fielnames and SQL fieldtypes</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>  1&nbsp;
  2&nbsp;$types = ifx_fieldtypes ($resultid);
  3&nbsp;if (! isset ($types)) {
  4&nbsp;  ... error ...
  5&nbsp;}
  6&nbsp;for ($i = 0; $i &#60; count($types); $i++) {
  7&nbsp;    $fname = key($types);
  8&nbsp;    printf("%s :\t type =  %s\n", $fname, $types[$fname]);
  9&nbsp;    next($types);
 10&nbsp;}
 11&nbsp;     </PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ifx-htmltbl-result.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.ifx-fieldproperties.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ifx_htmltbl_result</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.ifx.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ifx_fieldproperties</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>