<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >sqlite_fetch_array</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="SQLite" HREF="ref.sqlite.html"><LINK REL="PREVIOUS" TITLE="sqlite_fetch_all" HREF="function.sqlite-fetch-all.html"><LINK REL="NEXT" TITLE="sqlite_fetch_column_types" HREF="function.sqlite-fetch-column-types.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.sqlite-fetch-all.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.sqlite-fetch-column-types.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.sqlite-fetch-array" ></A >sqlite_fetch_array</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN105446" ></A ><P > (PHP 5)</P >sqlite_fetch_array -- Fetches the next row from a result set as an array.</DIV ><DIV CLASS="refsect1" ><A NAME="AEN105449" ></A ><H2 >Description</H2 >array <B CLASS="methodname" >sqlite_fetch_array</B > ( resource result [, int result_type [, bool decode_binary]])<BR ></BR ><P > Fetches the next row from the given <VAR CLASS="parameter" >result</VAR > handle. If there are no more rows, returns <TT CLASS="constant" ><B >FALSE</B ></TT >, otherwise returns an associative array representing the row data. </P ><P > <VAR CLASS="parameter" >result_type</VAR > can be used to specify how you want the results to be returned. The default value is <VAR CLASS="literal" >SQLITE_BOTH</VAR > which returns columns indexed by their ordinal column number and by column name. <VAR CLASS="literal" >SQLITE_ASSOC</VAR > causes the array to be indexed only by column names, and <VAR CLASS="literal" >SQLITE_NUM</VAR > to be indexed only by ordinal column numbers. </P ><P > The column names returned by <VAR CLASS="literal" >SQLITE_ASSOC</VAR > and <VAR CLASS="literal" >SQLITE_BOTH</VAR > will be case-folded according to the value of the <A HREF="ref.sqlite.html#ini.sqlite.assoc-case" >sqlite.assoc_case</A > configuration option. </P ><P > When <VAR CLASS="parameter" >decode_binary</VAR > is set to <TT CLASS="constant" ><B >TRUE</B ></TT > (the default), PHP will decode the binary encoding it applied to the data if it was encoded using the <A HREF="function.sqlite-escape-string.html" ><B CLASS="function" >sqlite_escape_string()</B ></A >. You will usually always leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications. </P ><P > See also <A HREF="function.sqlite-array-query.html" ><B CLASS="function" >sqlite_array_query()</B ></A > and <A HREF="function.sqlite-fetch-string.html" ><B CLASS="function" >sqlite_fetch_string()</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.sqlite-fetch-all.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.sqlite-fetch-column-types.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >sqlite_fetch_all</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.sqlite.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >sqlite_fetch_column_types</TD ></TR ></TABLE ></DIV ></BODY ></HTML >