<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uodbc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.odbc-fetch-row.php',
    1 => 'odbc_fetch_row',
    2 => 'Fetch a row',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'ODBC Функції',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-fetch-object.php',
    1 => 'odbc_fetch_object',
  ),
  'next' => 
  array (
    0 => 'function.odbc-field-len.php',
    1 => 'odbc_field_len',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uodbc/functions/odbc-fetch-row.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-fetch-row" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_fetch_row</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_fetch_row</span> &mdash; <span class="dc-title">Fetch a row</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.odbc-fetch-row-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_fetch_row</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$row</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Fetches a row of the data that was returned by <span class="function"><a href="function.odbc-do.php" class="function">odbc_do()</a></span>
   or <span class="function"><a href="function.odbc-exec.php" class="function">odbc_exec()</a></span>. After <span class="function"><strong>odbc_fetch_row()</strong></span>
   is called, the fields of that row can be accessed with
   <span class="function"><a href="function.odbc-result.php" class="function">odbc_result()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-fetch-row-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       The ODBC result object.
      </p>
     </dd>
    
    
     <dt><code class="parameter">row</code></dt>
     <dd>
      <p class="para">
       If <code class="parameter">row</code> is not specified,
       <span class="function"><strong>odbc_fetch_row()</strong></span> will try to fetch the next row in
       the result set. Calls to <span class="function"><strong>odbc_fetch_row()</strong></span> with and
       without <code class="parameter">row</code> can be mixed.
      </p>
      <p class="para">
       To step through the result more than once, you can call
       <span class="function"><strong>odbc_fetch_row()</strong></span> with
       <code class="parameter">row</code> 1, and then continue doing
       <span class="function"><strong>odbc_fetch_row()</strong></span> without
       <code class="parameter">row</code> to review the result.  If a driver
       doesn&#039;t support fetching rows by number, the
       <code class="parameter">row</code> parameter is ignored.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-fetch-row-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if there was a row, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.odbc-fetch-row-errors">
  <h3 class="title">Помилки/виключення</h3>
  <p class="simpara">
   An <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> is emitted when <code class="parameter">row</code>
   is equal or less than zero.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-fetch-row-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">statement</code> expects an <span class="classname"><strong class="classname">Odbc\Result</strong></span>
  instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

     <tr>
      <td>8.4.0</td>
      <td>
       An <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> is now emitted when <code class="parameter">row</code>
       is equal or less than zero.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">row</code> is now nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

</div><?php manual_footer($setup); ?>