<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysqli.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'mysqli.next-result.php',
    1 => 'mysqli::next_result',
    2 => 'multi_query の、次の結果を準備する',
  ),
  'up' => 
  array (
    0 => 'class.mysqli.php',
    1 => 'mysqli',
  ),
  'prev' => 
  array (
    0 => 'mysqli.multi-query.php',
    1 => 'mysqli::multi_query',
  ),
  'next' => 
  array (
    0 => 'mysqli.options.php',
    1 => 'mysqli::options',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mysqli/mysqli/next-result.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.next-result" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::next_result</h1>
  <h1 class="refname">mysqli_next_result</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mysqli::next_result</span> -- <span class="refname">mysqli_next_result</span> &mdash; <span class="dc-title">multi_query の、次の結果を準備する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.next-result-description">
  <h3 class="title">説明</h3>
  <p class="para">オブジェクト指向型</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysqli::next_result</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">手続き型</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_next_result</strong></span>(<span class="methodparam"><span class="type"><a href="class.mysqli.php" class="type mysqli">mysqli</a></span> <code class="parameter">$mysql</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   直近の
   <span class="function"><a href="mysqli.multi-query.php" class="function">mysqli_multi_query()</a></span> コールから次の結果セットを用意します。
   これは <span class="function"><a href="mysqli.store-result.php" class="function">mysqli_store_result()</a></span> あるいは
   <span class="function"><a href="mysqli.use-result.php" class="function">mysqli_use_result()</a></span> で取得することが可能です。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.next-result-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    <dt><code class="parameter">link</code></dt><dd><p class="para">手続き型のみ:
<span class="function"><a href="function.mysqli-connect.php" class="function">mysqli_connect()</a></span> あるいは <span class="function"><a href="mysqli.init.php" class="function">mysqli_init()</a></span> が返す <span class="classname"><a href="class.mysqli.php" class="classname">mysqli</a></span>オブジェクト。
</p></dd>
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.next-result-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   <span class="methodname"><a href="mysqli.more-results.php" class="methodname">mysqli_more_results()</a></span> とは異なり、次のクエリがエラーになった場合は、同様に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mysqli.next-result-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">
mysqli のエラー報告 (<strong><code><a href="mysqli.constants.php#constant.mysqli-report-error">MYSQLI_REPORT_ERROR</a></code></strong>) が有効になっており、かつ要求された操作が失敗した場合は、警告が発生します。さらに、エラー報告のモードが <strong><code><a href="mysqli.constants.php#constant.mysqli-report-strict">MYSQLI_REPORT_STRICT</a></code></strong> に設定されていた場合は、<span class="classname"><a href="class.mysqli-sql-exception.php" class="classname">mysqli_sql_exception</a></span> が代わりにスローされます。</p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.next-result-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <span class="function"><a href="mysqli.multi-query.php" class="function">mysqli_multi_query()</a></span> を参照ください。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.next-result-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.multi-query.php" class="function" rel="rdfs-seeAlso">mysqli_multi_query()</a> - データベース上でひとつ以上のクエリを実行する</span></li>
    <li><span class="function"><a href="mysqli.more-results.php" class="function" rel="rdfs-seeAlso">mysqli_more_results()</a> - マルチクエリからの結果がまだ残っているかどうかを調べる</span></li>
    <li><span class="function"><a href="mysqli.store-result.php" class="function" rel="rdfs-seeAlso">mysqli_store_result()</a> - 直近のクエリから結果セットを転送する</span></li>
    <li><span class="function"><a href="mysqli.use-result.php" class="function" rel="rdfs-seeAlso">mysqli_use_result()</a> - 結果セットの取得を開始する</span></li>
   </ul>
  </p>
 </div>


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