<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mysql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.mysql-info.php',
    1 => 'mysql_info',
    2 => 'Get information about the most recent query',
  ),
  'up' => 
  array (
    0 => 'ref.mysql.php',
    1 => 'MySQL Функції',
  ),
  'prev' => 
  array (
    0 => 'function.mysql-get-server-info.php',
    1 => 'mysql_get_server_info',
  ),
  'next' => 
  array (
    0 => 'function.mysql-insert-id.php',
    1 => 'mysql_insert_id',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/functions/mysql-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mysql-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysql_info</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_info</span> &mdash; <span class="dc-title">Get information about the most recent query</span></p>

 </div>

 <div id="function.mysql-info-refsynopsisdiv">
  <div class="warning"><strong class="warning">Увага</strong>
   <p class="para">Це розширення застаріле, починаючи
з PHP 5.5.0, та вилучене з PHP 7.0.0. Натомість використовуються розширення
<a href="book.mysqli.php" class="link">MySQLi</a> або
<a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a>. Докладніше описано у керівництві
<a href="mysqlinfo.api.choosing.php" class="link">MySQL: вибір API</a>.
Цю функцію можна замінити на:</p>
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.info.php" class="function">mysqli_info()</a></span></li>
   </ul>
  </div>
 </div>

 <div class="refsect1 description" id="refsect1-function.mysql-info-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mysql_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$link_identifier</code><span class="initializer"> = NULL</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Returns detailed information about the last query.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysql-info-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">link_identifier</code></dt><dd><p class="para">З&#039;єднання
MySQL. Якщо не задано, буде обрано останнє з&#039;єднання, встановлене функцією
<span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span>. Якщо з&#039;єднатися не вдалось, функція
спробує встановити нове, ніби викликавши функцію
<span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> без параметрів. Якщо з&#039;єднання не
вдалося знайти або встановити, буде виведено повідомлення рівня
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong></p></dd>
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysql-info-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns information about the statement on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on
   failure. See the example below for which statements provide information,
   and what the returned value may look like. Statements that are not listed 
   will return <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mysql-info-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Relevant MySQL Statements</strong></p>
    <div class="example-contents"><p>
     Statements that return string values. The numbers are only for 
     illustrating purpose; their values will correspond to the query.
    </p></div>
    <div class="example-contents">
<div class="mysqlcode"><pre class="mysqlcode">INSERT INTO ... SELECT ...
String format: Records: 23 Duplicates: 0 Warnings: 0 
INSERT INTO ... VALUES (...),(...),(...)...
String format: Records: 37 Duplicates: 0 Warnings: 0 
LOAD DATA INFILE ...
String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 
ALTER TABLE
String format: Records: 60 Duplicates: 0 Warnings: 0 
UPDATE
String format: Rows matched: 65 Changed: 65 Warnings: 0</pre>
</div>
    </div>

   </div>
  </p>
 </div>

 
 <div class="refsect1 notes" id="refsect1-function.mysql-info-notes">
  <h3 class="title">Примітки</h3>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <p class="para">
    <span class="function"><strong>mysql_info()</strong></span> returns a non-<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> value for the 
    INSERT ... VALUES statement only if multiple value lists are 
    specified in the statement.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysql-info-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mysql-affected-rows.php" class="function" rel="rdfs-seeAlso">mysql_affected_rows()</a> - Get number of affected rows in previous MySQL operation</span></li>
    <li><span class="function"><a href="function.mysql-insert-id.php" class="function" rel="rdfs-seeAlso">mysql_insert_id()</a> - Get the ID generated in the last query</span></li>
    <li><span class="function"><a href="function.mysql-stat.php" class="function" rel="rdfs-seeAlso">mysql_stat()</a> - Get current system status</span></li>
   </ul>
  </p>
 </div>

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