didou           Wed Jul 16 13:13:19 2003 EDT

  Modified files:              
    /phpdoc/en/reference/ifx/functions  ifx-affected-rows.xml 
                                        ifx-close.xml ifx-connect.xml 
                                        ifx-errormsg.xml 
                                        ifx-fetch-row.xml 
                                        ifx-fieldproperties.xml 
                                        ifx-fieldtypes.xml 
                                        ifx-getsqlca.xml 
                                        ifx-htmltbl-result.xml 
                                        ifx-query.xml 
  Log:
  adding PHP tags in the examples
  
Index: phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.2 Wed Apr 17 02:38:56 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml     Wed Jul 16 13:13:19 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-affected-rows">
    <refnamediv>
@@ -35,12 +35,11 @@
      reasonable result sets.
     </para>
     <para>
-     See also: <function>ifx_num_rows</function>
-    </para>
      <example>
       <title>Informix affected rows</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $rid = ifx_prepare ("select * from emp 
                      where name like " . $name, $connid);
 if (! $rid) {
@@ -51,9 +50,14 @@
     printf ("Too many rows in result set (%d)\n<br>", $rowcount);
     die ("Please restrict your query<br>\n");
 }
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     See also <function>ifx_num_rows</function>.
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-close.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-close.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-close.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-close.xml:1.2 Wed Apr 17 02:38:56 2002
+++ phpdoc/en/reference/ifx/functions/ifx-close.xml     Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-close">
    <refnamediv>
@@ -30,19 +30,23 @@
      <function>ifx_close</function> will not close persistent links
      generated by <function>ifx_pconnect</function>.
     </para>
-    <para> 
-     See also: <function>ifx_connect</function>, and
-     <function>ifx_pconnect</function>.
+    <para>
      <example>
       <title>Closing a Informix connection</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $conn_id = ifx_connect ("[EMAIL PROTECTED]", "itsme", "mypassword");
 ... some queries and stuff ...
 ifx_close($conn_id);
+?>
 ]]>
       </programlisting>
      </example>
+    </para>
+    <para> 
+     See also <function>ifx_connect</function> and
+     <function>ifx_pconnect</function>.
     </para>
    </refsect1>
   </refentry>
Index: phpdoc/en/reference/ifx/functions/ifx-connect.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-connect.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-connect.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-connect.xml:1.2       Wed Apr 17 02:38:56 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-connect.xml   Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-connect">
    <refnamediv>
@@ -42,17 +42,21 @@
      the script ends, unless it's closed earlier by explicitly calling
      <function>ifx_close</function>.
     </para>
-    <para> 
-     See also <function>ifx_pconnect</function>, and
-     <function>ifx_close</function>.
+    <para>
      <example>
       <title>Connect to a Informix database</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $conn_id = ifx_connect ("[EMAIL PROTECTED]", "imyself", "mypassword");
+?>
 ]]>
       </programlisting>
      </example>
+    </para>
+    <para> 
+     See also <function>ifx_pconnect</function> and
+     <function>ifx_close</function>.
     </para>
    </refsect1>
   </refentry>
Index: phpdoc/en/reference/ifx/functions/ifx-errormsg.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-errormsg.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-errormsg.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-errormsg.xml:1.2      Wed Apr 17 02:38:57 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-errormsg.xml  Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-errormsg">
    <refnamediv>
@@ -18,16 +18,19 @@
      "<parameter>errorcode</parameter>" param is present, the error
      message corresponding to "<parameter>errorcode</parameter>".
     </para>
-    <para> 
-     See also: <function>ifx_error</function>
-    </para>
-    <informalexample>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title><function>ifx_errormsg</function> example</title>
+      <programlisting role="php">
 <![CDATA[
 printf("%s\n&lt;br>", ifx_errormsg(-201));
 ]]>
-     </programlisting>
-    </informalexample>
+      </programlisting>
+     </example>
+    </para>
+    <para> 
+     See also <function>ifx_error</function>.
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.2     Wed Apr 17 02:38:57 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-fetch-row">
    <refnamediv>
@@ -46,10 +46,12 @@
      return the next row in the result set, or &false; if there are no
      more rows.
     </para>
-    <example>
-     <title>Informix fetch rows</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title>Informix fetch rows</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 $rid = ifx_prepare ("select * from emp where name like " . $name,
                      $connid, IFX_SCROLL);
 if (! $rid) {
@@ -73,9 +75,11 @@
     $row = ifx_fetch_row ($rid, "NEXT");
 }
 ifx_free_result ($rid);
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-fieldproperties.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-fieldproperties.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-fieldproperties.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-fieldproperties.xml:1.2       Wed Apr 17 
02:38:57 2002
+++ phpdoc/en/reference/ifx/functions/ifx-fieldproperties.xml   Wed Jul 16 13:13:19 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-fieldproperties">
    <refnamediv>
@@ -23,10 +23,12 @@
      "SQLTYPE;length;precision;scale;ISNULLABLE" where SQLTYPE = the
      Informix type like "SQLVCHAR" etc. and ISNULLABLE = "Y" or "N".
     </para>
-    <example>
-     <title>Informix SQL fieldproperties</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title>Informix SQL fieldproperties</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 $properties = ifx_fieldproperties ($resultid);
 if (! isset($properties)) {
   ... error ...
@@ -36,9 +38,11 @@
     printf ("%s:\t type =  %s\n", $fname, $properties[$fname]);
     next ($properties);
 }
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-fieldtypes.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-fieldtypes.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-fieldtypes.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-fieldtypes.xml:1.2    Wed Apr 17 02:38:57 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-fieldtypes.xml        Wed Jul 16 13:13:19 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-fieldtypes">
    <refnamediv>
@@ -17,10 +17,12 @@
      fieldtypes as data for query with
      <parameter>result_id</parameter>.  Returns &false; on error.
     </para>
-    <example>
-     <title>Fieldnames and SQL fieldtypes</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title>Fieldnames and SQL fieldtypes</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 $types = ifx_fieldtypes ($resultid);
 if (! isset ($types)) {
   ... error ...
@@ -30,9 +32,11 @@
     printf("%s :\t type =  %s\n", $fname, $types[$fname]);
     next($types);
 }
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-getsqlca.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-getsqlca.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-getsqlca.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-getsqlca.xml:1.2      Wed Apr 17 02:38:58 
2002
+++ phpdoc/en/reference/ifx/functions/ifx-getsqlca.xml  Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-getsqlca">
    <refnamediv>
@@ -35,10 +35,12 @@
      retrieves the values that were saved by the ifx driver at the
      appropriate moment.
     </para>
-    <example>
-     <title>Retrieve Informix sqlca.sqlerrd[x] values</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title>Retrieve Informix sqlca.sqlerrd[x] values</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 /* assume the first column of 'sometable' is a serial */
 $qid = ifx_query("insert into sometable 
                   values (0, '2nd column', 'another column') ", $connid);
@@ -47,10 +49,12 @@
 }
 $sqlca = ifx_getsqlca ($qid);
 $serial_value = $sqlca["sqlerrd1"];
-echo "The serial value of the inserted row is : " . $serial_value<br>\n"; 
+echo "The serial value of the inserted row is : " . $serial_value<br />\n"; 
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.2 
phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.3
--- phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.2        Wed Apr 17 
02:38:58 2002
+++ phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml    Wed Jul 16 13:13:19 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-htmltbl-result">
    <refnamediv>
@@ -23,10 +23,12 @@
      into a html table. The optional second argument is a string of
      &lt;table&gt; tag options
     </para>
-    <example>
-     <title>Informix results as HTML table</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title>Informix results as HTML table</title>
+      <programlisting role="php">
 <![CDATA[
+<?php
 $rid = ifx_prepare ("select * from emp where name like " . $name,
                      $connid, IFX_SCROLL);
 if (! $rid) {
@@ -44,9 +46,11 @@
 ifx_htmltbl_result ($rid, "border=\"2\"");
 
 ifx_free_result($rid);
+?>
 ]]>
-     </programlisting>
-    </example>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/ifx/functions/ifx-query.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-query.xml:1.3 
phpdoc/en/reference/ifx/functions/ifx-query.xml:1.4
--- phpdoc/en/reference/ifx/functions/ifx-query.xml:1.3 Fri Jun 14 09:35:05 2002
+++ phpdoc/en/reference/ifx/functions/ifx-query.xml     Wed Jul 16 13:13:19 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
   <refentry id="function.ifx-query">
    <refnamediv>
@@ -18,7 +18,7 @@
        </parameter></methodparam>
      </methodsynopsis>
     <para> 
-     Returns: A positive Informix result identifier on success, or
+     Returns a positive Informix result identifier on success, or
      &false; on error.  
     </para>
     <para> 
@@ -69,13 +69,13 @@
      or file with the blob functions (see below).
     </para>
     <para>
-     See also: <function>ifx_connect</function>.
      <example>
       <title>
        Show all rows of the "orders" table as a html table
       </title>
       <programlisting role="php">
 <![CDATA[
+<?php
 ifx_textasvarchar(1);      // use "text mode" for blobs
 $res_id = ifx_query("select * from orders", $conn_id);
 if (! $res_id) {
@@ -85,6 +85,7 @@
 }
 ifx_htmltbl_result($res_id, "border=\"1\"");
 ifx_free_result($res_id);
+?>
 ]]>
       </programlisting>
      </example>
@@ -92,24 +93,33 @@
       <title>Insert some values into the "catalog" table</title>
       <programlisting role="php">
 <![CDATA[   
-                   // create blob id's for a byte and text column
+<?php
+
+// create blob id's for a byte and text column
 $textid = ifx_create_blob(0, 0, "Text column in memory");
 $byteid = ifx_create_blob(1, 0, "Byte column in memory");
-                      // store blob id's in a blobid array
+
+// store blob id's in a blobid array
 $blobidarray[] = $textid;
 $blobidarray[] = $byteid;
-                      // launch query
+
+// launch query
 $query = "insert into catalog (stock_num, manu_code, " .
          "cat_descr,cat_picture) values(1,'HRO',?,?)";
 $res_id = ifx_query($query, $conn_id, $blobidarray);
 if (! $res_id) {
   ... error ...
 }
-                     // free result id
+
+// free result id
 ifx_free_result($res_id);
+?>
 ]]>
       </programlisting>
      </example>
+    </para>
+    <para>
+     See also <function>ifx_connect</function>.
     </para>
    </refsect1>
   </refentry>

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to