<?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 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.odbc-result-all.php',
    1 => 'odbc_result_all',
    2 => 'Выводит результат в виде HTML-таблицы',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'Функции ODBC',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-result.php',
    1 => 'odbc_result',
  ),
  'next' => 
  array (
    0 => 'function.odbc-rollback.php',
    1 => 'odbc_rollback',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/uodbc/functions/odbc-result-all.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-result-all" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_result_all</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_result_all</span> &mdash; <span class="dc-title">Выводит результат в виде HTML-таблицы</span></p>

 </div>

 <div id="function.odbc-result-all-refsynopsisdiv">
  
<div class="warning"><strong class="warning">Внимание</strong>
 <p class="simpara">
  Начиная с PHP 8.1.0 функция <em>УСТАРЕЛА</em>.
  Полагаться на функцию настоятельно не рекомендуют.
 </p>
</div>
 </div>

 <div class="refsect1 description" id="refsect1-function.odbc-result-all-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>odbc_result_all</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$format</code><span class="initializer"> = &quot;&quot;</span></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Функция выводит все строки из ODBC-объекта с результатом, который вернула функция
   <span class="function"><a href="function.odbc-exec.php" class="function">odbc_exec()</a></span>. Результат выводится в формате HTML-таблицы,
   данные <em>не</em> экранируются.
  </p>
  <p class="para">
   Функцией не рекомендуют пользоваться в производственной среде;
   функцией пользуются, когда разрабатывают приложение, чтобы быстро получить
   набор результатов.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.odbc-result-all-parameters">
  <h3 class="title">Список параметров</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       Объект ODBC с результатом.
      </p>
     </dd>
    
    
     <dt><code class="parameter">format</code></dt>
     <dd>
      <p class="para">
       Дополнительный параметр, который определяет общее форматирование таблицы.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.odbc-result-all-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Функция возвращает количество строк в результате или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>,
   если возникла ошибка.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-result-all-changelog">
  <h3 class="title">Список изменений</h3>
  <p class="para">
   <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> теперь принимает экземпляр с результом OBDC-запроса <span class="classname"><strong class="classname">Odbc\Result</strong></span>;
  раньше принимался тип <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>.
 </td>
</tr>

      <tr>
       <td>8.1.0</td>
       <td>
        Функция устарела.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

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