cvs: phpdoc-fr /reference/pgsql/functions pg-result-error.xml
| From: | Jean-S�bastien Goupil | Date: | Wed, 30 Nov 2005 06:11:19 +0000 |
| Subject: | cvs: phpdoc-fr /reference/pgsql/functions pg-result-error.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-4658@lists.php.net to get a copy of this message | ||
jsgoupil Wed Nov 30 01:11:19 2005 EDT
Modified files:
/phpdoc-fr/reference/pgsql/functions pg-result-error.xml
Log:
sync with EN
http://cvs.php.net/diff.php/phpdoc-fr/reference/pgsql/functions/pg-result-error.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc-fr/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc-fr/reference/pgsql/functions/pg-result-error.xml:1.9
phpdoc-fr/reference/pgsql/functions/pg-result-error.xml:1.10
--- phpdoc-fr/reference/pgsql/functions/pg-result-error.xml:1.9 Tue Nov 29 16:36:31 2005
+++ phpdoc-fr/reference/pgsql/functions/pg-result-error.xml Wed Nov 30 01:11:16 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
-<!-- EN-Revision: 1.8 Maintainer: jsgoupil Status: ready -->
+<!-- $Revision: 1.10 $ -->
+<!-- EN-Revision: 1.9 Maintainer: jsgoupil Status: ready -->
<refentry id="function.pg-result-error">
<refnamediv>
@@ -58,6 +58,29 @@
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Exemple avec <function>pg_result_error</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+ $dbconn = pg_connect("dbname=publisher") or die("Connexion impossible");
+
+ if (!pg_connection_busy($dbconn)) {
+ pg_send_query($dbconn, "select * from nexistepas;");
+ }
+
+ $res1 = pg_get_result($dbconn);
+ echo pg_result_error($res1);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>
@@ -92,4 +115,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->