<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mysql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'mysql.constants.php',
    1 => 'Costanti predefinite',
    2 => 'Costanti predefinite',
  ),
  'up' => 
  array (
    0 => 'book.mysql.php',
    1 => 'MySQL (Original)',
  ),
  'prev' => 
  array (
    0 => 'changelog.mysql.php',
    1 => 'Storico dei cambiamenti',
  ),
  'next' => 
  array (
    0 => 'mysql.examples.php',
    1 => 'Esempi',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql.constants" class="appendix">
 <h1 class="title">Costanti predefinite</h1>

 <p class="simpara">
Queste costanti sono definite da questa estensione e 
sono disponibili solo se l&#039;estensione è stata compilata
nel PHP o se è stata caricata dinamicamente a runtime.
</p>
 <p class="para">
  It is possible to specify additional client flags for the
  <span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> and <span class="function"><a href="function.mysql-pconnect.php" class="function">mysql_pconnect()</a></span>
  functions. The following constants are defined:
  <table id="mysql.client-flags" class="doctable table">
   <caption><strong>MySQL client constants</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr id="constant.mysql-client-compress">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-compress">MYSQL_CLIENT_COMPRESS</a></code></strong></td>
       <td>Use compression protocol</td>
      </tr>

      <tr id="constant.mysql-client-ignore-space">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-ignore-space">MYSQL_CLIENT_IGNORE_SPACE</a></code></strong></td>
       <td>Allow space after function names</td>
      </tr>

      <tr id="constant.mysql-client-interactive">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-interactive">MYSQL_CLIENT_INTERACTIVE</a></code></strong></td>
       <td>Allow interactive_timeout seconds (instead of <strong class="option unknown">wait_timeout</strong>) of
        inactivity before closing the connection.</td>
      </tr>

      <tr id="constant.mysql-client-ssl">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-ssl">MYSQL_CLIENT_SSL</a></code></strong></td>
       <td>Use SSL encryption. This flag is only available with version 4.x
        of the MySQL client library or newer. Version 3.23.x is bundled both
        with PHP 4 and Windows binaries of PHP 5.
       </td>
      </tr>

     </tbody>
    
  </table>

 </p>

 <p class="para">
  The function <span class="function"><a href="function.mysql-fetch-array.php" class="function">mysql_fetch_array()</a></span> uses a constant for
  the different types of result arrays. The following constants are
  defined:
  <table id="mysql.constants.fetch" class="doctable table">
   <caption><strong>MySQL fetch constants</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.mysql-assoc">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-assoc">MYSQL_ASSOC</a></code></strong></td>
      <td>
       Columns are returned into the array having the fieldname as the array
       index.
      </td>
     </tr>

     <tr id="constant.mysql-both">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-both">MYSQL_BOTH</a></code></strong></td>
      <td>
       Columns are returned into the array having both a numerical index
       and the fieldname as the array index.
      </td>
     </tr>

     <tr id="constant.mysql-num">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-num">MYSQL_NUM</a></code></strong></td>
      <td>
       Columns are returned into the array having a numerical index to the
       fields. This index starts with 0, the first field in the result.
      </td>
     </tr>

    </tbody>
   
  </table>

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