Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > ebb1914cf182a88528b4547490db1dd8 > files > 1165

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

<HTML
><HEAD
><TITLE
>mysql_list_fields</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="MySQL functions"
HREF="ref.mysql.html"><LINK
REL="PREVIOUS"
TITLE="mysql_insert_id"
HREF="function.mysql-insert-id.html"><LINK
REL="NEXT"
TITLE="mysql_list_dbs"
HREF="function.mysql-list-dbs.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.mysql-insert-id.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.mysql-list-dbs.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.mysql-list-fields"
>mysql_list_fields</A
></H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN18924"
></A
>mysql_list_fields -- List MySQL result fields</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN18927"
></A
><H2
>Description</H2
><DIV
CLASS="funcsynopsis"
><P
></P
><CODE
CLASS="FUNCDEF"
>int mysql_list_fields</CODE
>(string database_name, string table_name, int 
      
       [<SPAN
CLASS="optional"
>link_identifier</SPAN
>]
      
     );<P
></P
></DIV
><P
>&#13;     <B
CLASS="function"
>mysql_list_fields()</B
> retrieves information
     about the given tablename. Arguments are the database name and
     the table name. A result pointer is returned which can be used
     with <A
HREF="function.mysql-field-flags.html"
><B
CLASS="function"
>mysql_field_flags()</B
></A
>,
     <A
HREF="function.mysql-field-len.html"
><B
CLASS="function"
>mysql_field_len()</B
></A
>,
     <A
HREF="function.mysql-field-name.html"
><B
CLASS="function"
>mysql_field_name()</B
></A
>, and
     <A
HREF="function.mysql-field-type.html"
><B
CLASS="function"
>mysql_field_type()</B
></A
>.
    </P
><P
>&#13;     A result identifier is a positive integer. The function returns
     -1 if a error occurs. A string describing the error will be
     placed in <TT
CLASS="literal"
>$phperrmsg</TT
>, and unless the function
     was called as <TT
CLASS="literal"
>@mysql()</TT
> then this error string
     will also be printed out.
    </P
><P
>&#13;     For downward compatibility <B
CLASS="function"
>mysql_listfields()</B
>
     can also be used.
    </P
></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.mysql-insert-id.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.mysql-list-dbs.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mysql_insert_id</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.mysql.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mysql_list_dbs</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>