cvs: phpdoc-fr /reference/fbsql functions.xml reference.xml /reference/fbsql/functions fbsql-autocommit.xml fbsql-close.xml fbsql-commit.xml
fbsql-connect.xml fbsql-create-blob.xml fbsql-create-clob.xml fbsql-create-db.xml fbsql-data-seek.xml fbsql-database-password.xml fbsql-drop-db.xml
fbsql-errno.xml fbsql-error.xml fbsql-fetch-array.xml fbsql-fetch-assoc.xml fbsql-fetch-field.xml fbsql-fetch-object.xml fbsql-field-name.xml
fbsql-field-seek.xml fbsql-field-type.xml fbsql-list-dbs.xml fbsql-list-fields.xml fbsql-next-result.xml fbsql-num-rows.xml fbsql-query.xml
fbsql-read-blob.xml fbsql-read-clob.xml fbsql-rollback.xml fbsql-select-db.xml fbsql-start-db.xml fbsql-stop-db.xml fbsql-tablename.xml
fbsql-warnings.xml
| From: | Damien Seguy | Date: | Wed, 05 Mar 2003 00:55:50 +0000 |
| Subject: | cvs: phpdoc-fr /reference/fbsql functions.xml reference.xml /reference/fbsql/functions fbsql-autocommit.xml fbsql-close.xml fbsql-commit.xml fbsql-connect.xml fbsql-create-blob.xml fbsql-create-clob.xml fbsql-create-db.xml fbsql-data-seek.xml fbsql-database-password.xml fbsql-drop-db.xml fbsql-errno.xml fbsql-error.xml fbsql-fetch-array.xml fbsql-fetch-assoc.xml fbsql-fetch-field.xml fbsql-fetch-object.xml fbsql-field-name.xml fbsql-field-seek.xml fbsql-field-type.xml fbsql-list-dbs.xml fbsql-list-fields.xml fbsql-next-result.xml fbsql-num-rows.xml fbsql-query.xml fbsql-read-blob.xml fbsql-read-clob.xml fbsql-rollback.xml fbsql-select-db.xml fbsql-start-db.xml fbsql-stop-db.xml fbsql-tablename.xml fbsql-warnings.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-271@lists.php.net to get a copy of this message | ||
dams Tue Mar 4 19:55:50 2003 EDT
Modified files:
/phpdoc-fr/reference/fbsql functions.xml reference.xml
/phpdoc-fr/reference/fbsql/functions fbsql-autocommit.xml
fbsql-close.xml
fbsql-commit.xml
fbsql-connect.xml
fbsql-create-blob.xml
fbsql-create-clob.xml
fbsql-create-db.xml
fbsql-data-seek.xml
fbsql-database-password.xml
fbsql-drop-db.xml
fbsql-errno.xml
fbsql-error.xml
fbsql-fetch-array.xml
fbsql-fetch-assoc.xml
fbsql-fetch-field.xml
fbsql-fetch-object.xml
fbsql-field-name.xml
fbsql-field-seek.xml
fbsql-field-type.xml
fbsql-list-dbs.xml
fbsql-list-fields.xml
fbsql-next-result.xml
fbsql-num-rows.xml
fbsql-query.xml
fbsql-read-blob.xml
fbsql-read-clob.xml
fbsql-rollback.xml
fbsql-select-db.xml
fbsql-start-db.xml
fbsql-stop-db.xml
fbsql-tablename.xml
fbsql-warnings.xml
Log:
spring commit
Index: phpdoc-fr/reference/fbsql/functions.xml diff -u /dev/null phpdoc-fr/reference/fbsql/functions.xml:1.3 --- /dev/null Tue Mar 4 19:55:50 2003 +++ phpdoc-fr/reference/fbsql/functions.xml Tue Mar 4 19:55:49 2003 @@ -0,0 +1,54 @@ +&reference.fbsql.functions.fbsql-affected-rows; +&reference.fbsql.functions.fbsql-autocommit; +&reference.fbsql.functions.fbsql-change-user; +&reference.fbsql.functions.fbsql-close; +&reference.fbsql.functions.fbsql-commit; +&reference.fbsql.functions.fbsql-connect; +&reference.fbsql.functions.fbsql-create-blob; +&reference.fbsql.functions.fbsql-create-clob; +&reference.fbsql.functions.fbsql-create-db; +&reference.fbsql.functions.fbsql-data-seek; +&reference.fbsql.functions.fbsql-database-password; +&reference.fbsql.functions.fbsql-database; +&reference.fbsql.functions.fbsql-db-query; +&reference.fbsql.functions.fbsql-db-status; +&reference.fbsql.functions.fbsql-drop-db; +&reference.fbsql.functions.fbsql-errno; +&reference.fbsql.functions.fbsql-error; +&reference.fbsql.functions.fbsql-fetch-array; +&reference.fbsql.functions.fbsql-fetch-assoc; +&reference.fbsql.functions.fbsql-fetch-field; +&reference.fbsql.functions.fbsql-fetch-lengths; +&reference.fbsql.functions.fbsql-fetch-object; +&reference.fbsql.functions.fbsql-fetch-row; +&reference.fbsql.functions.fbsql-field-flags; +&reference.fbsql.functions.fbsql-field-len; +&reference.fbsql.functions.fbsql-field-name; +&reference.fbsql.functions.fbsql-field-seek; +&reference.fbsql.functions.fbsql-field-table; +&reference.fbsql.functions.fbsql-field-type; +&reference.fbsql.functions.fbsql-free-result; +&reference.fbsql.functions.fbsql-get-autostart-info; +&reference.fbsql.functions.fbsql-hostname; +&reference.fbsql.functions.fbsql-insert-id; +&reference.fbsql.functions.fbsql-list-dbs; +&reference.fbsql.functions.fbsql-list-fields; +&reference.fbsql.functions.fbsql-list-tables; +&reference.fbsql.functions.fbsql-next-result; +&reference.fbsql.functions.fbsql-num-fields; +&reference.fbsql.functions.fbsql-num-rows; +&reference.fbsql.functions.fbsql-password; +&reference.fbsql.functions.fbsql-pconnect; +&reference.fbsql.functions.fbsql-query; +&reference.fbsql.functions.fbsql-read-blob; +&reference.fbsql.functions.fbsql-read-clob; +&reference.fbsql.functions.fbsql-result; +&reference.fbsql.functions.fbsql-rollback; +&reference.fbsql.functions.fbsql-select-db; +&reference.fbsql.functions.fbsql-set-lob-mode; +&reference.fbsql.functions.fbsql-set-transaction; +&reference.fbsql.functions.fbsql-start-db; +&reference.fbsql.functions.fbsql-stop-db; +&reference.fbsql.functions.fbsql-tablename; +&reference.fbsql.functions.fbsql-username; +&reference.fbsql.functions.fbsql-warnings; Index: phpdoc-fr/reference/fbsql/reference.xml diff -u phpdoc-fr/reference/fbsql/reference.xml:1.2 phpdoc-fr/reference/fbsql/reference.xml:1.3 --- phpdoc-fr/reference/fbsql/reference.xml:1.2 Mon Apr 15 20:53:27 2002 +++ phpdoc-fr/reference/fbsql/reference.xml Tue Mar 4 19:55:49 2003 @@ -1,34 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.fbsql"> <title>FrontBase</title> <titleabbrev>FrontBase</titleabbrev> <partintro> - &warn.experimental; - <simpara> - Ces fonctions vous permettent d'accéder aux serveurs SQL FrontBase. Pour - pouvoir les utiliser, vous devez compiler PHP avec le support fbsql en - utilisant l'option <link linkend="install.configure.with-fbsql"><option role="configure">--with-fbsql</option></link>. Si - vous utilisez cette option sans spécifier le chemin jusqu'à l'installation - fbsql, PHP recherchera les librairies du client fbsql dans les dossiers - habituels, sur votre système. Les utilisateurs qui ont installé - FrontBase dans un dossier non standard doivent spécifier le chemin comme - ceci : <link linkend="install.configure.with-fbsql"><option role="configure">--with-fbsql=/path/to/fbsql</option></link>. - Cela va indiquer à PHP le bon emplacement des librairies de FrontBase, - et éviter les conflits. - </simpara> - <simpara> - Plus d'informations sur FrontBase sont disponibles à - <ulink url="&url.fbsql;">&url.fbsql;</ulink>. - </simpara> - <simpara> + + <section id="fbsql.intro"> + &reftitle.intro; + <simpara> + Ces fonctions vous permettent d'accéder aux serveurs SQL FrontBase. + Plus de détails sur le serveur FrontBase est disponible sur le site de + <ulink url="&url.fbsql;">&url.fbsql;</ulink>. + </simpara> + <simpara> La documentation complète de FrontBase est disponible à <ulink url="&url.fbsql.docs;">&url.fbsql.docs;</ulink>. - </simpara> - <simpara> - Le support de Frontbase a été ajouté en PHP 4.0.6. - </simpara> - </partintro> + </simpara> + <simpara> + Frontbase est supporté depuis PHP 4.0.6. + </simpara> + </section> + + <section id="fbsql.requirements"> + &reftitle.required; + <para> + Vous devez installer un serveur de bases de données FrontBase ou, tout au + moins, les librairies clientes fbsql, pour accéder à ces fonctions. + Vous pouvez accéder au site de FrontBase + à l'adresse <ulink url="&url.fbsql;">&url.fbsql;</ulink>. + </para> + </section> + + &reference.fbsql.configure; + + &reference.fbsql.ini; + + <section id="fbsql.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.fbsql.constants; + + </partintro> &reference.fbsql.functions; Index: phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.1 Sun Apr 14 20:27:21 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml Tue Mar 4 19:55:49 2003 @@ -4,16 +4,14 @@ <refentry id="function.fbsql-autocommit"> <refnamediv> <refname>fbsql_autocommit</refname> - <refpurpose>Active ou désactive la validation automatique.</refpurpose> + <refpurpose>Active ou désactive la validation automatique</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_autocommit</methodname> + <type>bool</type><methodname>fbsql_autocommit</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter> - OnOff - </parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>OnOff</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_autocommit</function> retourne l'état courant Index: phpdoc-fr/reference/fbsql/functions/fbsql-close.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.1 Sun Apr 14 20:27:22 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-close.xml Tue Mar 4 19:55:49 2003 @@ -9,10 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_close</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <type>bool</type><methodname>fbsql_close</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_close</function> retourne &true; en @@ -25,18 +23,21 @@ connexion ouverte qui sera fermée. </para> <para> - Utiliser <function>fbsql_close</function> n'est pas nécessaire, car les - liens non persistants seront automatiquement fermé à la fin du script. + Utiliser <function>fbsql_close</function> n'est pas nécessaire, + car les liens non persistants seront automatiquement + fermés à la fin du script. </para> <example> <title>Exemple avec <function>fbsql_close</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret") - or die("Could not connect"); + or die("Impossible de se connecter"); print("Connecté!"); fbsql_close($link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.1 Sun Apr 14 20:27:22 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml Tue Mar 4 19:55:49 2003 @@ -15,16 +15,15 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_commit</function> retourne &true; en cas de succès, - et &false; sinon. - </para> - <para> <function>fbsql_commit</function> termine la transaction courante en sauvant toutes les insertions, modifications et effacements sur le serveur, puis en relachant tous les verrous qui ont étés posés sur les tables. Cette commande n'est nécessaire que si FBSQL est en mode de validation manuelle. </para> + <para> + &return.success; + </para> <para> Voir aussi <function>fbsql_autocommit</function> et Index: phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml Tue Mar 4 19:55:49 2003 @@ -45,12 +45,14 @@ <example> <title>Exemple avec <function>fbsql_connect</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret") or die("Could not connect"); print("Connected successfully"); fbsql_close($link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml Tue Mar 4 19:55:49 2003 @@ -28,7 +28,8 @@ <example> <title>Exemple avec <function>fbsql_create_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $filename = "blobfile.bin"; @@ -38,7 +39,8 @@ $blobHandle = fbsql_create_blob($blobdata, $link); $sql = "INSERT INTO BLOB_TABLE (BLOB_COLUMN) VALUES ($blobHandle);"; $rs = fbsql_query($sql, $link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml Tue Mar 4 19:55:49 2003 @@ -29,9 +29,10 @@ <example> <title>Exemple avec <function>fbsql_create_clob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") - or die ("Could not connect"); + or die ("Impossible de se connecter"); $filename = "clob_file.txt"; $fp = fopen($filename, "rb"); $clobdata = fread($fp, filesize($filename)); @@ -39,7 +40,8 @@ $clobHandle = fbsql_create_clob($clobdata, $link); $sql = "INSERT INTO CLOB_TABLE (CLOB_COLUMN) VALUES ($clobHandle);"; $rs = fbsql_query($sql, $link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml Tue Mar 4 19:55:49 2003 @@ -8,13 +8,13 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>boolean</type><methodname>fbsql_create_db</methodname> - <methodparam><type>string</type><parameter>database_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>fbsql_create_db</methodname> + <methodparam><type>string</type><parameter>database name</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter> + link_identifier + </parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_create_db</function> crée une nouvelle base de données, nommée <parameter>database_name</parameter>, sur @@ -23,7 +23,8 @@ <example> <title>Exemle avec <function>fbsql_create_db</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die ("Impossible de se connecter"); if (fbsql_create_db("my_db")) { @@ -31,7 +32,8 @@ } else { printf("Erreur de création de la base de données : %s\n", fbsql_error()); } -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml Tue Mar 4 19:55:49 2003 @@ -4,19 +4,15 @@ <refentry id="function.fbsql-data-seek"> <refnamediv> <refname>fbsql_data_seek</refname> - <refpurpose>Déplace le pointeur interne de résultat</refpurpose> + <refpurpose>Déplace le pointeur interne de résultat FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>fbsql_data_seek</methodname> - <methodparam><type>int</type><parameter>result_identifier</parameter></methodparam> - <methodparam><type>int</type><parameter>row_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>fbsql_data_seek</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> + <methodsynopsis> + <type>bool</type><methodname>fbsql_data_seek</methodname> + <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> + <methodparam><type>int</type><parameter>row_number</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_data_seek</function> déplace le pointeur interne de ligne dans le résultat de requête <parameter>result_identifier</parameter> @@ -24,12 +20,16 @@ appel à <function>fbsql_fetch_row</function> retournera cette ligne. </para> <para> + &return.success; + </para> + <para> Les lignes sont numérotées à partir de 0. </para> <example> <title>Exemple avec <function>fbsql_data_seek</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die ("Impossible de se connecter"); fbsql_select_db("samp_db") @@ -38,17 +38,18 @@ $result = fbsql_query($query) or die ("Query failed"); // Lecture des lignes en ordre inverse - for ($i = fbsql_num_rows($result) - 1; $i >=0; $i--) { + for ($i = fbsql_num_rows($result) - 1; $i >=0; $i--) { if (!fbsql_data_seek($result, $i)) { printf ("Impossible d'accéder à la ligne %d\n", $i); continue; } if(!($row = fbsql_fetch_object($result))) continue; - printf ("%s %s<BR>\n", $row->last_name, $row->first_name); + printf ("%s %s<BR>\n", $row->last_name, $row->first_name); } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml Tue Mar 4 19:55:49 2003 @@ -31,8 +31,27 @@ appelant la fonction <function>fbsql_connect</function>, et en utilisant la connexion qui en résultera (si elle réussit). </para> + <para> + Cette fonction ne modifie pas le mot de passe d'accès au serveur + qui est stocké sur le serveur, et elle ne permet pas non plus d'aller + lire ce mot de passe. + </para> + <example> + <title>Exemple avec <function>fbsql_create_clob</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") + or die ("Impossible de se connecter"); + fbsql_database_password($link, "mot de passe secret"); + fbsql_select_db($database, $link); +?> +]]> + </programlisting> + </example> <para> Voir aussi + <function>fbsql_select_db</function>, <function>fbsql_connect</function> et <function>fbsql_pconnect</function>. </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.1 Sun Apr 14 20:27:26 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml Tue Mar 4 19:55:49 2003 @@ -9,20 +9,19 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_drop_db</methodname> + <type>bool</type><methodname>fbsql_drop_db</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_drop_db</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> - <para> <function>fbsql_drop_db</function> essaie de supprimer la base de données <parameter>database_name</parameter>, sur la connexion représentée par <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> </refsect1> </refentry> Index: phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml Tue Mar 4 19:55:49 2003 @@ -29,14 +29,16 @@ erreurs, faites le dès que les fonctions ont été appelées. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("marliesle"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; fbsql_select_db("nonexistentdb"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); - echo fbsql_errno().": ".fbsql_error()."<br>"; -?> + echo fbsql_errno().": ".fbsql_error()."<BR>"; +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-error.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-error.xml Tue Mar 4 19:55:49 2003 @@ -29,14 +29,16 @@ erreurs, faites le dès que les fonctions ont été appelées. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("marliesle"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; fbsql_select_db("nonexistentdb"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); - echo fbsql_errno().": ".fbsql_error()."<br>"; -?> + echo fbsql_errno().": ".fbsql_error()."<BR>"; +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml Tue Mar 4 19:55:49 2003 @@ -35,7 +35,9 @@ devez absolument utiliser les indices numériques. <informalexample> <programlisting> -select t1.f1 as foo t2.f1 as bar from t1, t2; +<![CDATA[ +select t1.f1 as foo t2.f1 as bar from t1, t2 +]]> </programlisting> </informalexample> </para> @@ -57,17 +59,19 @@ <example> <title>Exemple avec <function>fbsql_fetch_array</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database","select user_id, fullname from table"); while ($row = fbsql_fetch_array($result)) { - echo "user_id: ".$row["user_id"]."<br>\n"; - echo "user_id: ".$row[0]."<br>\n"; - echo "fullname: ".$row["fullname"]."<br>\n"; - echo "fullname: ".$row[1]."<br>\n"; + echo "user_id : ".$row["user_id"]."<BR>\n"; + echo "user_id : ".$row[0]."<BR>\n"; + echo "Nom complet : ".$row["fullname"]."<BR>\n"; + echo "Nom complet : ".$row[1]."<BR>\n"; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml Tue Mar 4 19:55:49 2003 @@ -44,7 +44,8 @@ <example> <title>Exemple avec <function>fbsql_fetch_assoc</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database","select * from table;"); while ($row = fbsql_fetch_assoc($result)) { @@ -52,7 +53,8 @@ echo $row["fullname"]; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.1 Sun Apr 14 20:27:28 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml Tue Mar 4 19:55:49 2003 @@ -60,30 +60,32 @@ <example> <title>Exemple avec <function>fbsql_fetch_field</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password) or die ("Impossible de se connecter"); $result = fbsql_db_query("database", "select * from table;") - or die ("Query failed"); + or die ("La requête a échoué"); // lire les données de colonnes $i = 0; - while ($i < fbsql_num_fields($result)) { - echo "Information de la colonne $i:<br>\n"; + while ($i < fbsql_num_fields($result)) { + echo "Information de la colonne $i:<br>\n"; $meta = fbsql_fetch_field($result); if (!$meta) { - echo "Aucune information disponible<br>\n"; + echo "Aucune information disponible<br>\n"; } - echo "<PRE> -max_length: $meta->max_length -name: $meta->name -not_null: $meta->not_null -table: $meta->table -type: $meta->type -</PRE>"; + echo "<PRE> +max_length: $meta->max_length +name: $meta->name +not_null: $meta->not_null +table: $meta->table +type: $meta->type +</PRE>"; $i++; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.1 Sun Apr 14 20:27:28 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml Tue Mar 4 19:55:49 2003 @@ -43,7 +43,8 @@ <example> <title>Exemple avec <function>fbsql_fetch_object</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database", "select * from table;"); while ($row = fbsql_fetch_object($result)) { @@ -51,7 +52,8 @@ echo $row->fullname; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.1 Sun Apr 14 20:27:30 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml Tue Mar 4 19:55:49 2003 @@ -10,11 +10,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>fbsql_field_name</methodname> - <methodparam><type>int</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_index</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>fbsql_field_name</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_index</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_field_name</function> retourne le nom du champs numéro <parameter>field_index</parameter> dans le résultat @@ -36,15 +36,17 @@ <example> <title>Exemple avec <function>fbsql_field_name</function></title> <programlisting role="php"> -<?php -// La tablea utilisateur est constituée de trois colonnes +<![CDATA[ +<?php +// La table utilisateur est constituée de trois colonnes // user_id // username // password. $res = fbsql_db_query("users", "select * from users;", $link); echo fbsql_field_name($res, 0) . "\n"; echo fbsql_field_name($res, 2); -?> +?> +]]> </programlisting> </example> </para> @@ -52,8 +54,10 @@ L'exemple ci-dessus va afficher : <informalexample> <programlisting> +<![CDATA[ user_id password +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.1 Sun Apr 14 20:27:31 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml Tue Mar 4 19:55:49 2003 @@ -10,11 +10,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>boolean</type><methodname>fbsql_field_seek</methodname> - <methodparam><type>int</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>fbsql_field_seek</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_field_seek</function> place le pointeur de colonne à la colonne <parameter>field_offset</parameter>. Si ce paramètre Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.1 Sun Apr 14 20:27:32 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml Tue Mar 4 19:55:50 2003 @@ -25,7 +25,8 @@ <example> <title>Exemple avec <function>fbsql_field_type</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("localhost:3306"); fbsql_connect("localhost", "_SYSTEM", ""); $result = fbsql_query("SELECT * FROM onek;"); @@ -33,18 +34,19 @@ $rows = fbsql_num_rows($result); $i = 0; $table = fbsql_field_table($result, $i); - echo "Votre table '".$table."' a ".$fields." colonnes et ".$rows." lignes <br>"; - echo "La table dispose des champs suivants <br>"; - while ($i < $fields) { + echo "Votre table '".$table."' a ".$fields." colonnes et ".$rows." lignes <BR>"; + echo "La table dispose des champs suivants <BR>"; + while ($i < $fields) { $type = fbsql_field_type ($result, $i); $name = fbsql_field_name ($result, $i); $len = fbsql_field_len ($result, $i); $flags = fbsql_field_flags($result, $i); - echo $type." ".$name." ".$len." ".$flags."<br>"; + echo $type." ".$name." ".$len." ".$flags."<BR>"; $i++; } fbsql_close(); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.1 Sun Apr 14 20:27:33 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml Tue Mar 4 19:55:50 2003 @@ -5,17 +5,17 @@ <refnamediv> <refname>fbsql_list_dbs</refname> <refpurpose> - Liste les bases de données + Liste les bases de données FBSQL </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>fbsql_list_dbs</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>fbsql_list_dbs</methodname> + <methodparam choice="opt"><type>resource</type><parameter> + link_identifier + </parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_list_dbs</function> retourne un résultat contenant la liste des bases de données disponibles sur le serveur @@ -27,13 +27,15 @@ <example> <title>Exemple avec <function>fbsql_list_dbs</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect('localhost', 'myname', 'secret'); $db_list = fbsql_list_dbs($link); while ($row = fbsql_fetch_object($db_list)) { echo $row->Database . "\n"; } -?> +?> +]]> </programlisting> </example> </para> @@ -41,10 +43,12 @@ L'exemple ci-dessus va afficher ceci : <informalexample> <programlisting> +<![CDATA[ database1 database2 database3 -.. +... +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.1 Sun Apr 14 20:27:33 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml Tue Mar 4 19:55:50 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>fbsql_list_fields</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_list_fields</function> lit les informations à propos @@ -39,14 +37,16 @@ <example> <title>Exemple avec <function>fbsql_list_fields</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect('localhost', 'myname', 'secret'); $fields = fbsql_list_fields("database1", "table1", $link); $columns = fbsql_num_fields($fields); - for ($i = 0; $i < $columns; $i++) { + for ($i = 0; $i < $columns; $i++) { echo fbsql_field_name($fields, $i) . "\n";; } -?> +?> +]]> </programlisting> </example> </para> @@ -54,10 +54,12 @@ L'exemple ci-dessus va afficher : <informalexample> <programlisting> +<![CDATA[ field1 field2 field3 -.. +... +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.1 Sun Apr 14 20:27:34 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml Tue Mar 4 19:55:50 2003 @@ -29,7 +29,8 @@ <example> <title>Exemple avec <function>fbsql_next_result</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret"); fbsql_select_db("MyDB", $link); $SQL = "Select * from table1; select * from table2;"; @@ -39,7 +40,8 @@ } while (fbsql_next_result($rs)); fbsql_free_result($rs); fbsql_close($link); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml Tue Mar 4 19:55:50 2003 @@ -21,13 +21,15 @@ <example> <title>Exemple <function>fbsql_num_rows</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "username", "password"); fbsql_select_db("database", $link); $result = fbsql_query("SELECT * FROM table1;", $link); $num_rows = fbsql_num_rows($result); - echo "$num_rows Rows\n"; -?> + echo "$num_rows lignes\n"; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-query.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-query.xml Tue Mar 4 19:55:50 2003 @@ -39,10 +39,12 @@ <example> <title>Exemple avec <function>fbsql_query</function>(1)</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $result = fbsql_query("SELECT * WHERE 1=1;") or die("Requête invalide"); -?> +?> +]]> </programlisting> </example> </para> @@ -53,10 +55,12 @@ <example> <title>Exemple avec <function>fbsql_query</function>(2)</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $result = fbsql_query("SELECT my_col FROM my_tbl") or die ("Invalid query"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml Tue Mar 4 19:55:50 2003 @@ -32,7 +32,8 @@ <example> <title>Exemple avec <function>fbsql_read_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $sql = "SELECT BLOB_COLUMN FROM BLOB_TABLE;"; @@ -46,7 +47,8 @@ // $row_data[0] will now contain a handle to the BLOB data in the first row $blob_data = fbsql_read_blob($row_data[0]); fbsql_free_result($rs); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml Tue Mar 4 19:55:50 2003 @@ -32,7 +32,8 @@ <example> <title>Exemple avec <function>fbsql_read_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $sql = "SELECT CLOB_COLUMN FROM CLOB_TABLE;"; @@ -46,7 +47,8 @@ // $row_data[0] will now contain a handle to the CLOB data in the first row $clob_data = fbsql_read_clob($row_data[0]); fbsql_free_result($rs); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-rollback"> <refnamediv> <refname>fbsql_rollback</refname> - <refpurpose>Annule une transaction</refpurpose> + <refpurpose>Annule une transaction FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -15,14 +15,13 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_rollback</function> retourne &true; en cas - de succès et &false; sinon. - </para> - <para> <function>fbsql_rollback</function> termine la transaction courante en annulant toutes les requêtes émises depuis la dernière validation. Cette commande n'est utile que si FrontBase est en mode de validation manuelle. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml Tue Mar 4 19:55:50 2003 @@ -8,17 +8,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>fbsql_select_db</methodname> - <methodparam><type>string</type><parameter>database_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> - <para> - <function>fbsql_select_db</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> + <methodsynopsis> + <type>bool</type><methodname>fbsql_select_db</methodname> + <methodparam><type>string</type><parameter>database_name</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_select_db</function> remplace la base de données active courante par <parameter>database_name</parameter>, sur la @@ -29,6 +23,9 @@ en appelant <function>fbsql_connect</function> sans argument. </para> <para> + &return.success; + </para> + <para> Le client contacte FBExec pour connaître le numéro de port à utiliser pour la connexion à la base de données. Si le nom de la base est un numéro, le système l'utilisera comme numéro de port, et ne @@ -42,6 +39,7 @@ </para> <para> Voir aussi + <function>fbsql_database_password</function>, <function>fbsql_connect</function>, <function>fbsql_pconnect</function> et <function>fbsql_query</function>. Index: phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.1 Sun Apr 14 20:27:37 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-start-db"> <refnamediv> <refname>fbsql_start_db</refname> - <refpurpose>Démarre une base de données</refpurpose> + <refpurpose>Démarre une base de données FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,13 +16,12 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_start_db</function> retourne &true; en cas de - succès et &false; sinon. - </para> - <para> <function>fbsql_start_db</function> démarre la base de données <parameter>database_name</parameter> sur la connexion <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.1 Sun Apr 14 20:27:37 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-stop-db"> <refnamediv> <refname>fbsql_stop_db</refname> - <refpurpose>Stoppe une base de données</refpurpose> + <refpurpose>Stoppe une base de données FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,13 +16,12 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_stop_db</function> retourne &true; en cas de - succès et &false; sinon. - </para> - <para> <function>fbsql_stop_db</function> stoppe la base de données <parameter>database_name</parameter> sur la connexion <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.1 Sun Apr 14 20:27:38 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml Tue Mar 4 19:55:50 2003 @@ -22,16 +22,18 @@ <example> <title>Exemple avec <function>fbsql_tablename</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("localhost:3306"); $result = fbsql_list_tables("wisconsin"); $i = 0; - while ($i < fbsql_num_rows($result)) { + while ($i < fbsql_num_rows($result)) { $tb_names[$i] = fbsql_tablename($result, $i); - echo $tb_names[$i] . "<br>"; + echo $tb_names[$i] . "<BR>"; $i++; } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.1 Sun Apr 14 20:27:38 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml Tue Mar 4 19:55:50 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_warnings</methodname> - <methodparam choice="opt"><type>boolean</type><parameter> + <type>bool</type><methodname>fbsql_warnings</methodname> + <methodparam choice="opt"><type>bool</type><parameter> OnOff </parameter></methodparam> </methodsynopsis>
Index: phpdoc-fr/reference/fbsql/functions.xml diff -u /dev/null phpdoc-fr/reference/fbsql/functions.xml:1.3 --- /dev/null Tue Mar 4 19:55:50 2003 +++ phpdoc-fr/reference/fbsql/functions.xml Tue Mar 4 19:55:49 2003 @@ -0,0 +1,54 @@ +&reference.fbsql.functions.fbsql-affected-rows; +&reference.fbsql.functions.fbsql-autocommit; +&reference.fbsql.functions.fbsql-change-user; +&reference.fbsql.functions.fbsql-close; +&reference.fbsql.functions.fbsql-commit; +&reference.fbsql.functions.fbsql-connect; +&reference.fbsql.functions.fbsql-create-blob; +&reference.fbsql.functions.fbsql-create-clob; +&reference.fbsql.functions.fbsql-create-db; +&reference.fbsql.functions.fbsql-data-seek; +&reference.fbsql.functions.fbsql-database-password; +&reference.fbsql.functions.fbsql-database; +&reference.fbsql.functions.fbsql-db-query; +&reference.fbsql.functions.fbsql-db-status; +&reference.fbsql.functions.fbsql-drop-db; +&reference.fbsql.functions.fbsql-errno; +&reference.fbsql.functions.fbsql-error; +&reference.fbsql.functions.fbsql-fetch-array; +&reference.fbsql.functions.fbsql-fetch-assoc; +&reference.fbsql.functions.fbsql-fetch-field; +&reference.fbsql.functions.fbsql-fetch-lengths; +&reference.fbsql.functions.fbsql-fetch-object; +&reference.fbsql.functions.fbsql-fetch-row; +&reference.fbsql.functions.fbsql-field-flags; +&reference.fbsql.functions.fbsql-field-len; +&reference.fbsql.functions.fbsql-field-name; +&reference.fbsql.functions.fbsql-field-seek; +&reference.fbsql.functions.fbsql-field-table; +&reference.fbsql.functions.fbsql-field-type; +&reference.fbsql.functions.fbsql-free-result; +&reference.fbsql.functions.fbsql-get-autostart-info; +&reference.fbsql.functions.fbsql-hostname; +&reference.fbsql.functions.fbsql-insert-id; +&reference.fbsql.functions.fbsql-list-dbs; +&reference.fbsql.functions.fbsql-list-fields; +&reference.fbsql.functions.fbsql-list-tables; +&reference.fbsql.functions.fbsql-next-result; +&reference.fbsql.functions.fbsql-num-fields; +&reference.fbsql.functions.fbsql-num-rows; +&reference.fbsql.functions.fbsql-password; +&reference.fbsql.functions.fbsql-pconnect; +&reference.fbsql.functions.fbsql-query; +&reference.fbsql.functions.fbsql-read-blob; +&reference.fbsql.functions.fbsql-read-clob; +&reference.fbsql.functions.fbsql-result; +&reference.fbsql.functions.fbsql-rollback; +&reference.fbsql.functions.fbsql-select-db; +&reference.fbsql.functions.fbsql-set-lob-mode; +&reference.fbsql.functions.fbsql-set-transaction; +&reference.fbsql.functions.fbsql-start-db; +&reference.fbsql.functions.fbsql-stop-db; +&reference.fbsql.functions.fbsql-tablename; +&reference.fbsql.functions.fbsql-username; +&reference.fbsql.functions.fbsql-warnings; Index: phpdoc-fr/reference/fbsql/reference.xml diff -u phpdoc-fr/reference/fbsql/reference.xml:1.2 phpdoc-fr/reference/fbsql/reference.xml:1.3 --- phpdoc-fr/reference/fbsql/reference.xml:1.2 Mon Apr 15 20:53:27 2002 +++ phpdoc-fr/reference/fbsql/reference.xml Tue Mar 4 19:55:49 2003 @@ -1,34 +1,49 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.fbsql"> <title>FrontBase</title> <titleabbrev>FrontBase</titleabbrev> <partintro> - &warn.experimental; - <simpara> - Ces fonctions vous permettent d'accéder aux serveurs SQL FrontBase. Pour - pouvoir les utiliser, vous devez compiler PHP avec le support fbsql en - utilisant l'option <link linkend="install.configure.with-fbsql"><option role="configure">--with-fbsql</option></link>. Si - vous utilisez cette option sans spécifier le chemin jusqu'à l'installation - fbsql, PHP recherchera les librairies du client fbsql dans les dossiers - habituels, sur votre système. Les utilisateurs qui ont installé - FrontBase dans un dossier non standard doivent spécifier le chemin comme - ceci : <link linkend="install.configure.with-fbsql"><option role="configure">--with-fbsql=/path/to/fbsql</option></link>. - Cela va indiquer à PHP le bon emplacement des librairies de FrontBase, - et éviter les conflits. - </simpara> - <simpara> - Plus d'informations sur FrontBase sont disponibles à - <ulink url="&url.fbsql;">&url.fbsql;</ulink>. - </simpara> - <simpara> + + <section id="fbsql.intro"> + &reftitle.intro; + <simpara> + Ces fonctions vous permettent d'accéder aux serveurs SQL FrontBase. + Plus de détails sur le serveur FrontBase est disponible sur le site de + <ulink url="&url.fbsql;">&url.fbsql;</ulink>. + </simpara> + <simpara> La documentation complète de FrontBase est disponible à <ulink url="&url.fbsql.docs;">&url.fbsql.docs;</ulink>. - </simpara> - <simpara> - Le support de Frontbase a été ajouté en PHP 4.0.6. - </simpara> - </partintro> + </simpara> + <simpara> + Frontbase est supporté depuis PHP 4.0.6. + </simpara> + </section> + + <section id="fbsql.requirements"> + &reftitle.required; + <para> + Vous devez installer un serveur de bases de données FrontBase ou, tout au + moins, les librairies clientes fbsql, pour accéder à ces fonctions. + Vous pouvez accéder au site de FrontBase + à l'adresse <ulink url="&url.fbsql;">&url.fbsql;</ulink>. + </para> + </section> + + &reference.fbsql.configure; + + &reference.fbsql.ini; + + <section id="fbsql.resources"> + &reftitle.resources; + <para> + </para> + </section> + + &reference.fbsql.constants; + + </partintro> &reference.fbsql.functions; Index: phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml:1.1 Sun Apr 14 20:27:21 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-autocommit.xml Tue Mar 4 19:55:49 2003 @@ -4,16 +4,14 @@ <refentry id="function.fbsql-autocommit"> <refnamediv> <refname>fbsql_autocommit</refname> - <refpurpose>Active ou désactive la validation automatique.</refpurpose> + <refpurpose>Active ou désactive la validation automatique</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_autocommit</methodname> + <type>bool</type><methodname>fbsql_autocommit</methodname> <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter> - OnOff - </parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>OnOff</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_autocommit</function> retourne l'état courant Index: phpdoc-fr/reference/fbsql/functions/fbsql-close.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-close.xml:1.1 Sun Apr 14 20:27:22 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-close.xml Tue Mar 4 19:55:49 2003 @@ -9,10 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_close</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <type>bool</type><methodname>fbsql_close</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_close</function> retourne &true; en @@ -25,18 +23,21 @@ connexion ouverte qui sera fermée. </para> <para> - Utiliser <function>fbsql_close</function> n'est pas nécessaire, car les - liens non persistants seront automatiquement fermé à la fin du script. + Utiliser <function>fbsql_close</function> n'est pas nécessaire, + car les liens non persistants seront automatiquement + fermés à la fin du script. </para> <example> <title>Exemple avec <function>fbsql_close</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret") - or die("Could not connect"); + or die("Impossible de se connecter"); print("Connecté!"); fbsql_close($link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml:1.1 Sun Apr 14 20:27:22 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-commit.xml Tue Mar 4 19:55:49 2003 @@ -15,16 +15,15 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_commit</function> retourne &true; en cas de succès, - et &false; sinon. - </para> - <para> <function>fbsql_commit</function> termine la transaction courante en sauvant toutes les insertions, modifications et effacements sur le serveur, puis en relachant tous les verrous qui ont étés posés sur les tables. Cette commande n'est nécessaire que si FBSQL est en mode de validation manuelle. </para> + <para> + &return.success; + </para> <para> Voir aussi <function>fbsql_autocommit</function> et Index: phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-connect.xml Tue Mar 4 19:55:49 2003 @@ -45,12 +45,14 @@ <example> <title>Exemple avec <function>fbsql_connect</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret") or die("Could not connect"); print("Connected successfully"); fbsql_close($link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-blob.xml Tue Mar 4 19:55:49 2003 @@ -28,7 +28,8 @@ <example> <title>Exemple avec <function>fbsql_create_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $filename = "blobfile.bin"; @@ -38,7 +39,8 @@ $blobHandle = fbsql_create_blob($blobdata, $link); $sql = "INSERT INTO BLOB_TABLE (BLOB_COLUMN) VALUES ($blobHandle);"; $rs = fbsql_query($sql, $link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml:1.1 Sun Apr 14 20:27:23 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-clob.xml Tue Mar 4 19:55:49 2003 @@ -29,9 +29,10 @@ <example> <title>Exemple avec <function>fbsql_create_clob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") - or die ("Could not connect"); + or die ("Impossible de se connecter"); $filename = "clob_file.txt"; $fp = fopen($filename, "rb"); $clobdata = fread($fp, filesize($filename)); @@ -39,7 +40,8 @@ $clobHandle = fbsql_create_clob($clobdata, $link); $sql = "INSERT INTO CLOB_TABLE (CLOB_COLUMN) VALUES ($clobHandle);"; $rs = fbsql_query($sql, $link); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-create-db.xml Tue Mar 4 19:55:49 2003 @@ -8,13 +8,13 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>boolean</type><methodname>fbsql_create_db</methodname> - <methodparam><type>string</type><parameter>database_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>fbsql_create_db</methodname> + <methodparam><type>string</type><parameter>database name</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter> + link_identifier + </parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_create_db</function> crée une nouvelle base de données, nommée <parameter>database_name</parameter>, sur @@ -23,7 +23,8 @@ <example> <title>Exemle avec <function>fbsql_create_db</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die ("Impossible de se connecter"); if (fbsql_create_db("my_db")) { @@ -31,7 +32,8 @@ } else { printf("Erreur de création de la base de données : %s\n", fbsql_error()); } -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-data-seek.xml Tue Mar 4 19:55:49 2003 @@ -4,19 +4,15 @@ <refentry id="function.fbsql-data-seek"> <refnamediv> <refname>fbsql_data_seek</refname> - <refpurpose>Déplace le pointeur interne de résultat</refpurpose> + <refpurpose>Déplace le pointeur interne de résultat FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>fbsql_data_seek</methodname> - <methodparam><type>int</type><parameter>result_identifier</parameter></methodparam> - <methodparam><type>int</type><parameter>row_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>fbsql_data_seek</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> + <methodsynopsis> + <type>bool</type><methodname>fbsql_data_seek</methodname> + <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> + <methodparam><type>int</type><parameter>row_number</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_data_seek</function> déplace le pointeur interne de ligne dans le résultat de requête <parameter>result_identifier</parameter> @@ -24,12 +20,16 @@ appel à <function>fbsql_fetch_row</function> retournera cette ligne. </para> <para> + &return.success; + </para> + <para> Les lignes sont numérotées à partir de 0. </para> <example> <title>Exemple avec <function>fbsql_data_seek</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die ("Impossible de se connecter"); fbsql_select_db("samp_db") @@ -38,17 +38,18 @@ $result = fbsql_query($query) or die ("Query failed"); // Lecture des lignes en ordre inverse - for ($i = fbsql_num_rows($result) - 1; $i >=0; $i--) { + for ($i = fbsql_num_rows($result) - 1; $i >=0; $i--) { if (!fbsql_data_seek($result, $i)) { printf ("Impossible d'accéder à la ligne %d\n", $i); continue; } if(!($row = fbsql_fetch_object($result))) continue; - printf ("%s %s<BR>\n", $row->last_name, $row->first_name); + printf ("%s %s<BR>\n", $row->last_name, $row->first_name); } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml:1.1 Sun Apr 14 20:27:24 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-database-password.xml Tue Mar 4 19:55:49 2003 @@ -31,8 +31,27 @@ appelant la fonction <function>fbsql_connect</function>, et en utilisant la connexion qui en résultera (si elle réussit). </para> + <para> + Cette fonction ne modifie pas le mot de passe d'accès au serveur + qui est stocké sur le serveur, et elle ne permet pas non plus d'aller + lire ce mot de passe. + </para> + <example> + <title>Exemple avec <function>fbsql_create_clob</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") + or die ("Impossible de se connecter"); + fbsql_database_password($link, "mot de passe secret"); + fbsql_select_db($database, $link); +?> +]]> + </programlisting> + </example> <para> Voir aussi + <function>fbsql_select_db</function>, <function>fbsql_connect</function> et <function>fbsql_pconnect</function>. </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml:1.1 Sun Apr 14 20:27:26 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-drop-db.xml Tue Mar 4 19:55:49 2003 @@ -9,20 +9,19 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_drop_db</methodname> + <type>bool</type><methodname>fbsql_drop_db</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_drop_db</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> - <para> <function>fbsql_drop_db</function> essaie de supprimer la base de données <parameter>database_name</parameter>, sur la connexion représentée par <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> </refsect1> </refentry> Index: phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-errno.xml Tue Mar 4 19:55:49 2003 @@ -29,14 +29,16 @@ erreurs, faites le dès que les fonctions ont été appelées. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("marliesle"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; fbsql_select_db("nonexistentdb"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); - echo fbsql_errno().": ".fbsql_error()."<br>"; -?> + echo fbsql_errno().": ".fbsql_error()."<BR>"; +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-error.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-error.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-error.xml Tue Mar 4 19:55:49 2003 @@ -29,14 +29,16 @@ erreurs, faites le dès que les fonctions ont été appelées. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("marliesle"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; fbsql_select_db("nonexistentdb"); - echo fbsql_errno().": ".fbsql_error()."<br>"; + echo fbsql_errno().": ".fbsql_error()."<BR>"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); - echo fbsql_errno().": ".fbsql_error()."<br>"; -?> + echo fbsql_errno().": ".fbsql_error()."<BR>"; +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-array.xml Tue Mar 4 19:55:49 2003 @@ -35,7 +35,9 @@ devez absolument utiliser les indices numériques. <informalexample> <programlisting> -select t1.f1 as foo t2.f1 as bar from t1, t2; +<![CDATA[ +select t1.f1 as foo t2.f1 as bar from t1, t2 +]]> </programlisting> </informalexample> </para> @@ -57,17 +59,19 @@ <example> <title>Exemple avec <function>fbsql_fetch_array</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database","select user_id, fullname from table"); while ($row = fbsql_fetch_array($result)) { - echo "user_id: ".$row["user_id"]."<br>\n"; - echo "user_id: ".$row[0]."<br>\n"; - echo "fullname: ".$row["fullname"]."<br>\n"; - echo "fullname: ".$row[1]."<br>\n"; + echo "user_id : ".$row["user_id"]."<BR>\n"; + echo "user_id : ".$row[0]."<BR>\n"; + echo "Nom complet : ".$row["fullname"]."<BR>\n"; + echo "Nom complet : ".$row[1]."<BR>\n"; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml:1.1 Sun Apr 14 20:27:27 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-assoc.xml Tue Mar 4 19:55:49 2003 @@ -44,7 +44,8 @@ <example> <title>Exemple avec <function>fbsql_fetch_assoc</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database","select * from table;"); while ($row = fbsql_fetch_assoc($result)) { @@ -52,7 +53,8 @@ echo $row["fullname"]; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml:1.1 Sun Apr 14 20:27:28 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-field.xml Tue Mar 4 19:55:49 2003 @@ -60,30 +60,32 @@ <example> <title>Exemple avec <function>fbsql_fetch_field</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password) or die ("Impossible de se connecter"); $result = fbsql_db_query("database", "select * from table;") - or die ("Query failed"); + or die ("La requête a échoué"); // lire les données de colonnes $i = 0; - while ($i < fbsql_num_fields($result)) { - echo "Information de la colonne $i:<br>\n"; + while ($i < fbsql_num_fields($result)) { + echo "Information de la colonne $i:<br>\n"; $meta = fbsql_fetch_field($result); if (!$meta) { - echo "Aucune information disponible<br>\n"; + echo "Aucune information disponible<br>\n"; } - echo "<PRE> -max_length: $meta->max_length -name: $meta->name -not_null: $meta->not_null -table: $meta->table -type: $meta->type -</PRE>"; + echo "<PRE> +max_length: $meta->max_length +name: $meta->name +not_null: $meta->not_null +table: $meta->table +type: $meta->type +</PRE>"; $i++; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml:1.1 Sun Apr 14 20:27:28 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-fetch-object.xml Tue Mar 4 19:55:49 2003 @@ -43,7 +43,8 @@ <example> <title>Exemple avec <function>fbsql_fetch_object</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database", "select * from table;"); while ($row = fbsql_fetch_object($result)) { @@ -51,7 +52,8 @@ echo $row->fullname; } fbsql_free_result($result); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml:1.1 Sun Apr 14 20:27:30 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-name.xml Tue Mar 4 19:55:49 2003 @@ -10,11 +10,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>fbsql_field_name</methodname> - <methodparam><type>int</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_index</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>fbsql_field_name</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_index</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_field_name</function> retourne le nom du champs numéro <parameter>field_index</parameter> dans le résultat @@ -36,15 +36,17 @@ <example> <title>Exemple avec <function>fbsql_field_name</function></title> <programlisting role="php"> -<?php -// La tablea utilisateur est constituée de trois colonnes +<![CDATA[ +<?php +// La table utilisateur est constituée de trois colonnes // user_id // username // password. $res = fbsql_db_query("users", "select * from users;", $link); echo fbsql_field_name($res, 0) . "\n"; echo fbsql_field_name($res, 2); -?> +?> +]]> </programlisting> </example> </para> @@ -52,8 +54,10 @@ L'exemple ci-dessus va afficher : <informalexample> <programlisting> +<![CDATA[ user_id password +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml:1.1 Sun Apr 14 20:27:31 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-seek.xml Tue Mar 4 19:55:49 2003 @@ -10,11 +10,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>boolean</type><methodname>fbsql_field_seek</methodname> - <methodparam><type>int</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>fbsql_field_seek</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_field_seek</function> place le pointeur de colonne à la colonne <parameter>field_offset</parameter>. Si ce paramètre Index: phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml:1.1 Sun Apr 14 20:27:32 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-field-type.xml Tue Mar 4 19:55:50 2003 @@ -25,7 +25,8 @@ <example> <title>Exemple avec <function>fbsql_field_type</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("localhost:3306"); fbsql_connect("localhost", "_SYSTEM", ""); $result = fbsql_query("SELECT * FROM onek;"); @@ -33,18 +34,19 @@ $rows = fbsql_num_rows($result); $i = 0; $table = fbsql_field_table($result, $i); - echo "Votre table '".$table."' a ".$fields." colonnes et ".$rows." lignes <br>"; - echo "La table dispose des champs suivants <br>"; - while ($i < $fields) { + echo "Votre table '".$table."' a ".$fields." colonnes et ".$rows." lignes <BR>"; + echo "La table dispose des champs suivants <BR>"; + while ($i < $fields) { $type = fbsql_field_type ($result, $i); $name = fbsql_field_name ($result, $i); $len = fbsql_field_len ($result, $i); $flags = fbsql_field_flags($result, $i); - echo $type." ".$name." ".$len." ".$flags."<br>"; + echo $type." ".$name." ".$len." ".$flags."<BR>"; $i++; } fbsql_close(); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml:1.1 Sun Apr 14 20:27:33 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-list-dbs.xml Tue Mar 4 19:55:50 2003 @@ -5,17 +5,17 @@ <refnamediv> <refname>fbsql_list_dbs</refname> <refpurpose> - Liste les bases de données + Liste les bases de données FBSQL </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>fbsql_list_dbs</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>fbsql_list_dbs</methodname> + <methodparam choice="opt"><type>resource</type><parameter> + link_identifier + </parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_list_dbs</function> retourne un résultat contenant la liste des bases de données disponibles sur le serveur @@ -27,13 +27,15 @@ <example> <title>Exemple avec <function>fbsql_list_dbs</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect('localhost', 'myname', 'secret'); $db_list = fbsql_list_dbs($link); while ($row = fbsql_fetch_object($db_list)) { echo $row->Database . "\n"; } -?> +?> +]]> </programlisting> </example> </para> @@ -41,10 +43,12 @@ L'exemple ci-dessus va afficher ceci : <informalexample> <programlisting> +<![CDATA[ database1 database2 database3 -.. +... +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml:1.1 Sun Apr 14 20:27:33 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-list-fields.xml Tue Mar 4 19:55:50 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>fbsql_list_fields</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>fbsql_list_fields</function> lit les informations à propos @@ -39,14 +37,16 @@ <example> <title>Exemple avec <function>fbsql_list_fields</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect('localhost', 'myname', 'secret'); $fields = fbsql_list_fields("database1", "table1", $link); $columns = fbsql_num_fields($fields); - for ($i = 0; $i < $columns; $i++) { + for ($i = 0; $i < $columns; $i++) { echo fbsql_field_name($fields, $i) . "\n";; } -?> +?> +]]> </programlisting> </example> </para> @@ -54,10 +54,12 @@ L'exemple ci-dessus va afficher : <informalexample> <programlisting> +<![CDATA[ field1 field2 field3 -.. +... +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml:1.1 Sun Apr 14 20:27:34 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-next-result.xml Tue Mar 4 19:55:50 2003 @@ -29,7 +29,8 @@ <example> <title>Exemple avec <function>fbsql_next_result</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "_SYSTEM", "secret"); fbsql_select_db("MyDB", $link); $SQL = "Select * from table1; select * from table2;"; @@ -39,7 +40,8 @@ } while (fbsql_next_result($rs)); fbsql_free_result($rs); fbsql_close($link); -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-num-rows.xml Tue Mar 4 19:55:50 2003 @@ -21,13 +21,15 @@ <example> <title>Exemple <function>fbsql_num_rows</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_connect("localhost", "username", "password"); fbsql_select_db("database", $link); $result = fbsql_query("SELECT * FROM table1;", $link); $num_rows = fbsql_num_rows($result); - echo "$num_rows Rows\n"; -?> + echo "$num_rows lignes\n"; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-query.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-query.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-query.xml Tue Mar 4 19:55:50 2003 @@ -39,10 +39,12 @@ <example> <title>Exemple avec <function>fbsql_query</function>(1)</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $result = fbsql_query("SELECT * WHERE 1=1;") or die("Requête invalide"); -?> +?> +]]> </programlisting> </example> </para> @@ -53,10 +55,12 @@ <example> <title>Exemple avec <function>fbsql_query</function>(2)</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $result = fbsql_query("SELECT my_col FROM my_tbl") or die ("Invalid query"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml:1.1 Sun Apr 14 20:27:35 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-read-blob.xml Tue Mar 4 19:55:50 2003 @@ -32,7 +32,8 @@ <example> <title>Exemple avec <function>fbsql_read_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $sql = "SELECT BLOB_COLUMN FROM BLOB_TABLE;"; @@ -46,7 +47,8 @@ // $row_data[0] will now contain a handle to the BLOB data in the first row $blob_data = fbsql_read_blob($row_data[0]); fbsql_free_result($rs); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-read-clob.xml Tue Mar 4 19:55:50 2003 @@ -32,7 +32,8 @@ <example> <title>Exemple avec <function>fbsql_read_blob</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $link = fbsql_pconnect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); $sql = "SELECT CLOB_COLUMN FROM CLOB_TABLE;"; @@ -46,7 +47,8 @@ // $row_data[0] will now contain a handle to the CLOB data in the first row $clob_data = fbsql_read_clob($row_data[0]); fbsql_free_result($rs); -?> +?> +]]> </programlisting> </example> <para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-rollback.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-rollback"> <refnamediv> <refname>fbsql_rollback</refname> - <refpurpose>Annule une transaction</refpurpose> + <refpurpose>Annule une transaction FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -15,14 +15,13 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_rollback</function> retourne &true; en cas - de succès et &false; sinon. - </para> - <para> <function>fbsql_rollback</function> termine la transaction courante en annulant toutes les requêtes émises depuis la dernière validation. Cette commande n'est utile que si FrontBase est en mode de validation manuelle. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml:1.1 Sun Apr 14 20:27:36 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-select-db.xml Tue Mar 4 19:55:50 2003 @@ -8,17 +8,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>fbsql_select_db</methodname> - <methodparam><type>string</type><parameter>database_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> - <para> - <function>fbsql_select_db</function> retourne &true; en - cas de succès et &false; en cas d'erreur. - </para> + <methodsynopsis> + <type>bool</type><methodname>fbsql_select_db</methodname> + <methodparam><type>string</type><parameter>database_name</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>fbsql_select_db</function> remplace la base de données active courante par <parameter>database_name</parameter>, sur la @@ -29,6 +23,9 @@ en appelant <function>fbsql_connect</function> sans argument. </para> <para> + &return.success; + </para> + <para> Le client contacte FBExec pour connaître le numéro de port à utiliser pour la connexion à la base de données. Si le nom de la base est un numéro, le système l'utilisera comme numéro de port, et ne @@ -42,6 +39,7 @@ </para> <para> Voir aussi + <function>fbsql_database_password</function>, <function>fbsql_connect</function>, <function>fbsql_pconnect</function> et <function>fbsql_query</function>. Index: phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml:1.1 Sun Apr 14 20:27:37 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-start-db.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-start-db"> <refnamediv> <refname>fbsql_start_db</refname> - <refpurpose>Démarre une base de données</refpurpose> + <refpurpose>Démarre une base de données FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,13 +16,12 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_start_db</function> retourne &true; en cas de - succès et &false; sinon. - </para> - <para> <function>fbsql_start_db</function> démarre la base de données <parameter>database_name</parameter> sur la connexion <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml:1.1 Sun Apr 14 20:27:37 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-stop-db.xml Tue Mar 4 19:55:50 2003 @@ -4,7 +4,7 @@ <refentry id="function.fbsql-stop-db"> <refnamediv> <refname>fbsql_stop_db</refname> - <refpurpose>Stoppe une base de données</refpurpose> + <refpurpose>Stoppe une base de données FBSQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,13 +16,12 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>fbsql_stop_db</function> retourne &true; en cas de - succès et &false; sinon. - </para> - <para> <function>fbsql_stop_db</function> stoppe la base de données <parameter>database_name</parameter> sur la connexion <parameter>link_identifier</parameter>. + </para> + <para> + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml:1.1 Sun Apr 14 20:27:38 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-tablename.xml Tue Mar 4 19:55:50 2003 @@ -22,16 +22,18 @@ <example> <title>Exemple avec <function>fbsql_tablename</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php fbsql_connect("localhost:3306"); $result = fbsql_list_tables("wisconsin"); $i = 0; - while ($i < fbsql_num_rows($result)) { + while ($i < fbsql_num_rows($result)) { $tb_names[$i] = fbsql_tablename($result, $i); - echo $tb_names[$i] . "<br>"; + echo $tb_names[$i] . "<BR>"; $i++; } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml diff -u phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.1 phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.2 --- phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml:1.1 Sun Apr 14 20:27:38 2002 +++ phpdoc-fr/reference/fbsql/functions/fbsql-warnings.xml Tue Mar 4 19:55:50 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>fbsql_warnings</methodname> - <methodparam choice="opt"><type>boolean</type><parameter> + <type>bool</type><methodname>fbsql_warnings</methodname> + <methodparam choice="opt"><type>bool</type><parameter> OnOff </parameter></methodparam> </methodsynopsis>