<?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 => 'it',
  ),
  '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 Funzioni',
  ),
  '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">Avviso</strong>
   <p class="para">Questa enstensione  deprecata da PHP 5.5.0, e sarà rimossa in futuro.
Al suo posto, usare l&#039;estensione <a href="book.mysqli.php" class="link">MySQLi</a> o <a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a>.
Vedere anche la guida <a href="mysqlinfo.api.choosing.php" class="link">MySQL: scelta dell&#039;API</a> e
le <a href="faq.databases.php#faq.databases.mysql.deprecated" class="link">FAQ relative</a> per ulteriori informazioni. 
Le alternative a questa funzione includono:</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">Descrizione</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="simpara">
   Returns detailed information about the last query.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysql-info-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   <dt><code class="parameter">
link_identifier</code></dt><dd><p class="para">La connessione MySQL. Se 
l&#039;identificativo di connessione non è specificato, l&#039;ultima connessione aperta da
<span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> viene assunta. Se questa connessione non è trovata, si
cercherà di crearne una come se <span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> fosse stata chiamata
senza argomenti. Se una connessione non è trovata oppure non viene stabilita, un
avviso di livello <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> viene generato.</p></dd>

  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysql-info-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   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">Esempi</h3>
  <div class="example" id="example-1">
   <p><strong>Example #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>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mysql-info-notes">
  <h3 class="title">Note</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <span class="simpara">
    <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.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysql-info-seealso">
  <h3 class="title">Vedere anche:</h3>
  <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>
 </div>

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