<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.odbc-fetch-row" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>odbc_fetch_row</refname>
  <refpurpose>Fetch a row</refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>bool</type><methodname>odbc_fetch_row</methodname>
   <methodparam><type>resource</type><parameter>statement</parameter></methodparam>
   <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>row</parameter><initializer>&null;</initializer></methodparam>
  </methodsynopsis>
  <para>
   Fetches a row of the data that was returned by <function>odbc_do</function>
   or <function>odbc_exec</function>. After <function>odbc_fetch_row</function>
   is called, the fields of that row can be accessed with
   <function>odbc_result</function>.
  </para>
 </refsect1>
 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>statement</parameter></term>
     <listitem>
      <para>
       The result identifier.
      </para>
     </listitem>
    </varlistentry>
    <varlistentry>
     <term><parameter>row</parameter></term>
     <listitem>
      <para>
       If <parameter>row</parameter> is not specified,
       <function>odbc_fetch_row</function> will try to fetch the next row in
       the result set. Calls to <function>odbc_fetch_row</function> with and
       without <parameter>row</parameter> can be mixed.
      </para>
      <para>
       To step through the result more than once, you can call
       <function>odbc_fetch_row</function> with
       <parameter>row</parameter> 1, and then continue doing
       <function>odbc_fetch_row</function> without
       <parameter>row</parameter> to review the result.  If a driver
       doesn't support fetching rows by number, the
       <parameter>row</parameter> parameter is ignored.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns &true; if there was a row, &false; otherwise.
  </para>
 </refsect1>

 <refsect1 role="changelog">
  &reftitle.changelog;
  <informaltable>
   <tgroup cols="2">
    <thead>
     <row>
      <entry>&Version;</entry>
      <entry>&Description;</entry>
     </row>
    </thead>
    <tbody>
     <row>
      <entry>8.0.0</entry>
      <entry>
       <parameter>row</parameter> is nullable now.
      </entry>
     </row>
    </tbody>
   </tgroup>
  </informaltable>
 </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
