<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mysql.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.mysql.php',
    1 => 'MySQL (Original)',
  ),
  'prev' => 
  array (
    0 => 'changelog.mysql.php',
    1 => 'Historique des modifications',
  ),
  'next' => 
  array (
    0 => 'mysql.examples.php',
    1 => 'Exemples',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Constantes pré-définies</h1>

 <p class="simpara">Ces constantes sont définies par cette
extension, et ne sont disponibles que si cette extension a été compilée avec
PHP, ou bien chargée au moment de l&#039;exécution.</p>
 <p class="para">
  Il est possible de spécifier des options de client
  supplémentaires pour les fonctions <span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> et
  <span class="function"><a href="function.mysql-pconnect.php" class="function">mysql_pconnect()</a></span>. Ces constantes sont les suivantes : 
  <table id="mysql.client-flags" class="doctable table">
   <caption><strong>Constantes client MySQL</strong></caption>
    
     <thead>
      <tr>
       <th>Constante</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>Utilise le protocole avec compression</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>Autorise les espaces après les noms de fonction</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>Autorise <strong class="option unknown">interactive_timeout</strong> secondes 
       d&#039;inactivité sur la connexion (au lieu de <strong class="option unknown">wait_timeout</strong>).</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>Utilisation du chiffrement SSL. Cette constante n&#039;est disponible
       qu&#039;à partir de la version 4.x et plus récente de la bibliothèque cliente MySQL.
       La version 3.23.x est fournie avec PHP 4 ainsi qu&#039;avec les binaires
       pour windows de PHP 5.</td>
      </tr>

     </tbody>
    
  </table>

 </p>

 <p class="para">
  La fonction <span class="function"><a href="function.mysql-fetch-array.php" class="function">mysql_fetch_array()</a></span> utilise une constante
  pour spécifier les différents types de formats de réponse. Les constantes
  suivantes sont utilisées :
  <table id="mysql.constants.fetch" class="doctable table">
   <caption><strong>Constantes de <span class="function"><a href="function.mysql-fetch-array.php" class="function">mysql_fetch_array()</a></span></strong></caption>
   
    <thead>
     <tr>
      <th>Constante</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>
       Les colonnes sont retournées dans un tableau, dont les index
       sont les noms de colonnes.
      </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>
       Les colonnes sont retournées dans un tableau ayant une indexation
       numérique et un système d&#039;index correspondant au nom des colonnes.
      </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>
       Les colonnes sont retournées dans un tableau avec un index numérique.
       Les colonnes sont numérotées dans leur ordre d&#039;apparition. L&#039;index
       commence à zéro.
      </td>
     </tr>

    </tbody>
   
  </table>

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