cvs: phpdoc-fr /reference/maxdb/functions maxdb-stmt-store-result.xml maxdb-store-result.xml maxdb-thread-id.xml maxdb-thread-safe.xml
maxdb-use-result.xml maxdb-warning-count.xml

From: Date: Fri, 21 Jan 2005 20:52:41 +0000
Subject: cvs: phpdoc-fr /reference/maxdb/functions maxdb-stmt-store-result.xml maxdb-store-result.xml maxdb-thread-id.xml maxdb-thread-safe.xml
maxdb-use-result.xml maxdb-warning-count.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3839@lists.php.net to get a copy of this message
yannick Fri Jan 21 15:52:41 2005 EDT Added files: /phpdoc-fr/reference/maxdb/functions maxdb-stmt-store-result.xml maxdb-store-result.xml maxdb-thread-id.xml maxdb-thread-safe.xml maxdb-use-result.xml maxdb-warning-count.xml Log: initial translation

http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-stmt-store-result.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-stmt-store-result.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-stmt-store-result.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-stmt-store-result"> <refnamediv> <refname>maxdb_stmt_store_result</refname> <refpurpose>Transfert un jeu de résultats depuis une requête préparée</refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>bool</type><methodname>maxdb_stmt_store_result</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para> <function>maxdb_stmt_store_result</function> n'a pas de fonctionnalité et ne devrait pas être utilisé pour récupérer les données depuis un serveur MaxDB. </para> </refsect1> <refsect1> &reftitle.returnvalues; <para>&return.success;</para> </refsect1> <refsect1> &reftitle.examples; <example> <title>Style procédural</title> <programlisting role="php"> <![CDATA[ <?php /* Ouvre une connexion */ $link = maxdb_connect("localhost", "MONA", "RED"); /* Vérification de la connexion */ if (maxdb_connect_errno()) { printf("Echec de la connexion : %s\n", maxdb_connect_error()); exit(); } $query = "SELECT name, zip FROM hotel.city ORDER BY name"; if ($stmt = maxdb_prepare($link, $query)) { /* Exécute une requête */ maxdb_stmt_execute($stmt); /* Stock le résultat */ maxdb_stmt_store_result($stmt); printf("Nombre de lignes : %d.\n", maxdb_stmt_num_rows($stmt)); /* Libération du résultat */ maxdb_stmt_free_result($stmt); /* Fermeture de la requête */ maxdb_stmt_close($stmt); } /* Fermeture de la connexion */ maxdb_close($link); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Nombre de lignes : -1. ]]> </screen> </example> </refsect1> <refsect1> &reftitle.seealso; <para> <function>maxdb_prepare</function>, <function>maxdb_stmt_result_metadata</function> et <function>maxdb_fetch</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-store-result.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-store-result.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-store-result.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-store-result"> <refnamediv> <refname>maxdb_store_result</refname> <refpurpose>Transfert un jeu de résultats depuis la dernière requête</refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>resource</type><methodname>maxdb_store_result</methodname> <methodparam><type>resource</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> Cette fonction n'a aucune fonctionnalité. </para> </refsect1> <refsect1> &reftitle.returnvalues; <para> Retourne une ressource de résultats ou &false; si une erreur survient. </para> </refsect1> <refsect1> &reftitle.examples; <para> Voir la fonction <function>maxdb_multi_query</function>. </para> </refsect1> <refsect1> &reftitle.seealso; <para> <function>maxdb_real_query</function> et <function>maxdb_use_result</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-thread-id.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-thread-id.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-thread-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-thread-id"> <refnamediv> <refname>maxdb_thread_id</refname> <refpurpose>Retourne l'identifiant du thread pour la connexion courante</refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>int</type><methodname>maxdb_thread_id</methodname> <methodparam><type>resource</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> <function>maxdb_thread_id</function> retourne l'identifiant du thread pour la connexion courante que l'on peut ensuite tuer en utilisant la fonction <function>maxdb_kill</function>. Si la connexion est perdue et que vous vous reconnectez avec la fonction <function>maxdb_ping</function>, l'identifiant du thread changera. De ce fait, vous ne devez récupérer l'identifiant du thread que lorsque vous en avez besoin. </para> <note> <para> L'identifiant du thread est assigné sur une base "connexion-par-connexion". De ce fait, si la connexion est interrompue puis réétablie, un nouvel identifiant du thread sera assigné. </para> </note> </refsect1> <refsect1> &reftitle.returnvalues; <para> <function>maxdb_thread_id</function> retourne l'identifiant du thread pour la connexion courante. </para> </refsect1> <refsect1> &reftitle.examples; <example> <title>Style procédural</title> <programlisting role="php"> <![CDATA[ <?php $link = maxdb_connect("localhost", "MONA", "RED"); /* Vérification de la connexion */ if (maxdb_connect_errno()) { printf("Echec de la connexion : %s\n", maxdb_connect_error()); exit(); } /* Détermine notre identifiant de thread */ $thread_id = maxdb_thread_id($link); /* Tue la connexion */ maxdb_kill($link, $thread_id); /* Ceci devrait produire une erreur */ if (!maxdb_query($link, "CREATE TABLE mycity LIKE hotel.city")) { printf("Erreur : %s\n", maxdb_error($link)); exit; } /* Fermeture de la connexion */ maxdb_close($link); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Warning: maxdb_query(): -10821 Session not connected <...> Erreur : Session not connected ]]> </screen> </example> </refsect1> <refsect1> &reftitle.seealso; <para> <function>maxdb_kill</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-thread-safe.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-thread-safe.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-thread-safe.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-thread-safe"> <refnamediv> <refname>maxdb_thread_safe</refname> <refpurpose>Indique si le thread safety est donné ou non</refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>bool</type><methodname>maxdb_thread_safe</methodname> <void /> </methodsynopsis> <para> <function>maxdb_thread_safe</function> indique si la bibliothèque cliente a été compilé en tant que thread safety. </para> </refsect1> <refsect1> &reftitle.returnvalues; <para> &true; si la bibliothèque cliente est thread safety, &false; sinon. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-use-result.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-use-result.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-use-result.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-use-result"> <refnamediv> <refname>maxdb_use_result</refname> <refpurpose>Initialise un jeu de résultats</refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>mixed</type><methodname>maxdb_use_result</methodname> <methodparam><type>resource</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> <function>maxdb_use_result</function> n'a aucun effet. </para> </refsect1> <refsect1> &reftitle.returnvalues; <para> Retourne toujours &false;. </para> </refsect1> <refsect1> &reftitle.examples; <example> <title>Style procédural</title> <programlisting role="php"> <![CDATA[ <?php $link = maxdb_connect("localhost", "MONA", "RED"); /* Vérification de la connexion */ if (maxdb_connect_errno()) { printf("Echec de la connexion : %s\n", maxdb_connect_error()); exit(); } $query = "SELECT * FROM DUAL;"; $query .= "SELECT Name FROM City ORDER BY ID LIMIT 20, 5"; /* Exécute une requête multiple */ if (maxdb_multi_query($link, $query)) { do { /* Stock le premier jeu de résultat */ if ($result = maxdb_use_result($link)) { while ($row = maxdb_fetch_row($result)) { printf("%s\n", $row[0]); } maxdb_free_result($result); } /* Affiche un séparateur */ if (maxdb_more_results($link)) { printf("-----------------\n"); } } while (maxdb_next_result($link)); } /* Fermeture de la connexion */ maxdb_close($link); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Warning: maxdb_multi_query(): -3008 POS(19) Invalid keyword or missing delimiter <...> ]]> </screen> </example> </refsect1> <refsect1> &reftitle.seealso; <para> <function>maxdb_real_query</function> et <function>maxdb_store_result</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/maxdb/functions/maxdb-warning-count.xml?r=1.1&p=1 Index: phpdoc-fr/reference/maxdb/functions/maxdb-warning-count.xml +++ phpdoc-fr/reference/maxdb/functions/maxdb-warning-count.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.maxdb-warning-count"> <refnamediv> <refname>maxdb_warning_count</refname> <refpurpose> Retourne le nombre d'avertissements depuis la dernière requête pour un lien donné </refpurpose> </refnamediv> <refsect1> &reftitle.description; &title.procedural; <methodsynopsis> <type>int</type><methodname>maxdb_warning_count</methodname> <methodparam><type>resource</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> <function>maxdb_warning_count</function> retourne le nombre d'avertissements depuis la dernière requête dans la connexion représentée par le paramètre <parameter>link</parameter>. </para> </refsect1> <refsect1> &reftitle.returnvalues; <para> Nombre d'avertissements ou zéro s'il n'y en a aucun. </para> </refsect1> <refsect1> &reftitle.examples; <example> <title>Style procédural</title> <programlisting role="php"> <![CDATA[ <?php $link = maxdb_connect("localhost", "MONA", "RED"); /* Vérification de la connexion */ if (maxdb_connect_errno()) { printf("Echec de la connexion : %s\n", maxdb_connect_error()); exit(); } maxdb_query($link, "CREATE TABLE temp.mycity LIKE hotel.city"); /* un nom de ville remarquablement long dans Wales */ $query = "INSERT INTO temp.mycity (zip, name) VALUES('11111', 'Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch')"; maxdb_query($link, $query); printf ("Nombre d'avertissements : %d\n", maxdb_warning_count($link)); /* Fermeture de la connexion */ maxdb_close($link); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Warning: maxdb_query(): -8004 POS(62) Constant must be compatible with column type and length <...> Nombre d'avertissements : 0 ]]> </screen> </example> </refsect1> <refsect1> &reftitle.seealso; <para> <function>maxdb_errno</function>, <function>maxdb_error</function> et <function>maxdb_sqlstate</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.fr (#3839) next »