[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/cubrid/_functions/cubrid-data-seek.xml_functions
From:       Esen_Sagynov <cubrid () php ! net>
Date:       2010-08-20 9:35:20
Message-ID: svn-cubrid-1282296920-302537-1744955448 () svn ! php ! net
[Download RAW message or body]

cubrid                                   Fri, 20 Aug 2010 09:35:20 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=302537

Log:
New functions added.

Changed paths:
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid-data-seek.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_assoc.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_field.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_lengths.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_object.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_row.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_flags.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_len.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_name.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_seek.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_table.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_type.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_free_result.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_charset.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_client_info.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_db_parameter.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_server_info.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_insert_id.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_list_dbs.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_num_fields.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_real_escape_string.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_result.xml
    A   phpdoc/en/trunk/reference/cubrid/functions/cubrid_unbuffered_query.xml
    U   phpdoc/en/trunk/reference/cubrid/versions.xml


["svn-diffs-302537.txt" (text/x-diff)]

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid-data-seek.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid-data-seek.xml	                  \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid-data-seek.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-data-seek" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_data_seek</refname>
+  <refpurpose>Moves the internal row pointer of the CUBRID result</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>bool</type><methodname>cubrid_data_seek</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>row_number</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function performs the moving of the internal row pointer of the CUBRID \
result (associated with the specified result identifier) to point to a specific row \
number. There are functions, such as <function>cubrid_fetch_assoc</function>, which \
use the current stored value of <parameter>row number</parameter>. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +   <varlistentry>
+  <term><parameter>row_number</parameter></term>
+  <listitem><para>This is the desired row number of the new result \
pointer.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    &true; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_data_seek</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "seek to row 0 and fetching fields: ";
+        cubrid_data_seek($result, 0);
+        $row = cubrid_fetch_assoc($result);
+        echo $row["name"]."|". $row["address"]."|".$row["salary"]."<br>";
+
+        echo "seek to row 2 and fetching fields: ";
+        cubrid_data_seek($result, 2);
+        $row = cubrid_fetch_assoc($result);
+        echo $row["name"]."|". $row["address"]."|".$row["salary"]."<br>";
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+       &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+seek to row 0 and fetching fields: Peter|1st Avenue, New York|1000.0000000000000000
+seek to row 2 and fetching fields: Peter Norton|81254, CA|19834.0000000000000000
+
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_assoc.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_assoc.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_assoc.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-fetch-assoc" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_fetch_assoc</refname>
+  <refpurpose>Returns the associative array that corresponds to the fetched \
row</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_fetch_assoc</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the associative array, that corresponds to the fetched row \
and, then,  moves the internal data pointer ahead, or it returns FALSE when the end \
is reached. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    Associative array, when process is successful.
+  </para>
+   <para>
+    &false; when the end is reached.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_fetch_assoc</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "seek to row 0 and fetching fields: ";
+        cubrid_data_seek($result, 0);
+        $row = cubrid_fetch_assoc($result);
+        echo $row["name"]."|". $row["address"]."|".$row["salary"]."<br>";
+
+        echo "seek to row 2 and fetching fields: ";
+        cubrid_data_seek($result, 2);
+        $row = cubrid_fetch_assoc($result);
+        echo $row["name"]."|". $row["address"]."|".$row["salary"]."<br>";
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+seek to row 0 and fetching fields: Peter|1st Avenue, New York|1000.0000000000000000
+seek to row 2 and fetching fields: Peter Norton|81254, CA|19834.0000000000000000
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_field.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_field.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_field.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-fetch-field" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_fetch_field</refname>
+  <refpurpose>Returns an object with certain properties</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>object</type><methodname>cubrid_fetch_field</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>field_offset = \
0</parameter></methodparam> +  </methodsynopsis>
+  <para>
+    This function returns an object with certain properties of the specific column. \
The properties of the object are: +  </para>
+  <para>
+    <variablelist>
+    <varlistentry>
+  <term><parameter>name</parameter></term>
+  <listitem><para>column name</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>table</parameter></term>
+  <listitem><para>name of the table that the column belongs to</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>def</parameter></term>
+  <listitem><para>default value of the column</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>max_length</parameter></term>
+  <listitem><para>maximum length of the column</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>not_null</parameter></term>
+  <listitem><para>1 if the column cannot be NULL</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>unique_key</parameter></term>
+  <listitem><para>1 if the column is an unique key</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>multiple_key</parameter></term>
+  <listitem><para>1 if the column is a non-unique key</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>numeri</parameter></term>
+  <listitem><para>1 if the column is numeric</para></listitem>
+   </varlistentry>
+   <varlistentry>
+  <term><parameter>type</parameter></term>
+  <listitem><para>the type of the column</para></listitem>
+   </varlistentry>
+  </variablelist>
+
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +   <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. If the field offset is not specified, \
the next field (that was not yet retrieved by this function) is retrieved. The \
<parameter>field_offset</parameter> starts at 0.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    Object with certain properties of the specific column, when process is \
successful. +  </para>
+   <para>
+    &false; or -1 on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_fetch_field</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "Fetching column 0 fields: ";
+        $meta = cubrid_fetch_field($result, 0);
+        if (!$meta)
+        {
+            echo "No information available<br />\n";
+        }
+        echo "<pre>
+        max_length:        $meta->max_length
+        multiple_key:        $meta->multiple_key
+        name:            $meta->name
+        not_null:        $meta->not_null
+        numeric:        $meta->numeric
+        table:            $meta->table
+        type:            $meta->type
+        default:        $meta->def
+        unique_key:        $meta->unique_key
+        </pre>";
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Fetching column 0 fields:
+        max_length:        13
+        multiple_key:    1
+        name:            name
+        not_null:        1
+        numeric:        0
+        table:        employees
+        type:            STRING
+        default:        [noname]
+        unique_key:        0
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_lengths.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_lengths.xml	              \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_lengths.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-fetch-lengths" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_fetch_lengths</refname>
+  <refpurpose>Returns an array with the lengths of the values of each field from the \
current row</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_fetch_lengths</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns an array with the lengths of the values of each field from \
the current row of the result set or it returns FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    An array, when process is successful.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_fetch_lengths</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $row= cubrid_fetch_assoc($result);
+        $lengths = cubrid_fetch_lengths($result);
+        print_r($row);
+        echo "<br>";
+        print_r($lengths);
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Array ( [name] => Peter [address] => 1st Avenue, New York [salary] => \
1000.0000000000000000 ) +Array ( [0] => 5 [1] => 20 [2] => 21 )
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_object.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_object.xml	               \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_object.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-fetch-object" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_fetch_object</refname>
+  <refpurpose>Returns an object with the column names</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>object</type><methodname>cubrid_fetch_object</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns an object with the column names of the result set as \
properties. The values of these properties are extracted from the current row of the \
result. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    An object, when process is successful.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_fetch_object</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $row = cubrid_fetch_object($result);
+        echo $row->name."<BR>";
+        echo $row->address."<BR>";
+        echo $row->salary;
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Peter
+1st Avenue, New York
+1000.0000000000000000
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_row.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_row.xml	                  \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_fetch_row.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-fetch-row" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_fetch_row</refname>
+  <refpurpose>Returns a numerical array with the values of the current \
row</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_fetch_row</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns a numerical array with the values of the current row from \
the result set, starting  from 0. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    A numerical array, when process is successful.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_fetch_row</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $row = cubrid_fetch_row($result);
+        echo $row[0]."<BR>".$row[1]."<BR>".$row[2]."<BR>";
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Peter
+1st Avenue, New York
+1000.0000000000000000
+
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_flags.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_flags.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_flags.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-flags" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_flags</refname>
+  <refpurpose>Returns a string with the flags of the given field offset</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_field_flags</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns a string with the flags of the given field offset \
separated by space. You can split the returned value using explode. The possible \
flags could be: <constant>not_null</constant>, <constant>primary_key</constant>, \
<constant>unique_key</constant>, <constant>foreign_key</constant>, \
<constant>auto_increment</constant>, <constant>shared</constant>, \
<constant>reverse_index</constant>, <constant>reverse_unique</constant> and \
<constant>timestamp</constant>. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    A string with flags, when process is successful.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_flags</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $flags = cubrid_field_flags($result, 0);
+        print_r(explode(' ', $flags));
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Array ( [0] => not_null [1] => unique_key [2] => auto_increment )
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_len.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_len.xml	                  \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_len.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-len" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_len</refname>
+  <refpurpose>Returns the maximum length of the specified field</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>int</type><methodname>cubrid_field_len</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the maximum length of the specified field on success, or \
it returns FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    Maximum length, when process is successful.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_len</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $length = cubrid_field_len($result, 1);
+        echo "Length of NAME field is ".$length;
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Length of NAME field is 256
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_name.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_name.xml	                 \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_name.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-name" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_name</refname>
+  <refpurpose>Returns the name of the specified field index</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_field_name</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the name of the specified field index on success or it \
returns FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+    Name of specified field index, on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_name</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo cubrid_field_name($result, 0)."<BR>";
+        echo cubrid_field_name($result, 2);
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+id
+address
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_seek.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_seek.xml	                 \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_seek.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-seek" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_seek</refname>
+  <refpurpose>Moves the result set cursor to the specified field offset</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>bool</type><methodname>cubrid_field_seek</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function moves the result set cursor to the specified field offset. This \
offset is used by <function>cubrid_fetch_field</function> if it doesn't include a \
field offset. It returns TRUE on success or FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &true; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_seek</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        cubrid_field_seek($result,2);
+        $meta = cubrid_fetch_field($result);
+        if (!$meta)
+        {
+            echo "No information available<br />\n";
+        }
+        echo "<pre>
+        max_length:        $meta->max_length
+        multiple_key:        $meta->multiple_key
+        name:            $meta->name
+        not_null:        $meta->not_null
+        numeric:        $meta->numeric
+        table:            $meta->table
+        type:            $meta->type
+        default:        $meta->def
+        unique_key:        $meta->unique_key
+        </pre>";
+
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+    max_length:        21
+    multiple_key:        1
+    name:            address
+    not_null:        0
+    numeric:            0
+    table:            employees
+    type:            STRING
+    default:
+    unique_key:        0
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_table.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_table.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_table.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-table" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_table</refname>
+  <refpurpose>Returns the name of the table of the specified field</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_field_table</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the name of the table of the specified field. This is \
useful when using large select queries with JOINS. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Name of the table of the specified field, on success.
+  </para>
+   <para>
+    &false; or -1 on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_table</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "Field 0 (<b>". cubrid_field_name($result, 0) . "</b>) is from table \
<i>" . cubrid_field_table($result, 0) . "</i><br>"; +        echo "Field 1 (<b>". \
cubrid_field_name($result, 1) . "</b>) is from table <i>" . \
cubrid_field_table($result, 1) . "</i><br>"; +
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Field 0 (id) is from table employees
+Field 1 (name) is from table employees
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_type.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_type.xml	                 \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_field_type.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-field-type" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_field_type</refname>
+  <refpurpose>Returns the type of the column corresponding to the given field \
offset</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_field_type</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the type of the column corresponding to the given field \
offset. The returned field type could be one of the following: "int", "real", \
"string", etc. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>field_offset</parameter></term>
+  <listitem><para>The numerical field offset. The \
<parameter>field_offset</parameter> starts at 0. If \
<parameter>field_offset</parameter> does not exist, an error of level \
<constant>E_WARNING</constant> is also issued.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Type of the column, on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_field_type</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "Field 0 (<b>". cubrid_field_name($result, 0) . "</b>) has type <i>" . \
cubrid_field_type($result, 0) . "</i><br>"; +        echo "Field 1 (<b>". \
cubrid_field_name($result, 1) . "</b>) has type <i>" . cubrid_field_type($result, 1) \
. "</i><br>"; +
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Field 0 (id) has type INT
+Field 1 (name) has type STRING
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_free_result.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_free_result.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_free_result.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-free-result" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_free_result</refname>
+  <refpurpose>Frees the memory occupied by the result data</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>bool</type><methodname>cubrid_free_result</methodname>
+   <methodparam><type>resource</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function frees the memory occupied by the result data. It returns TRUE on \
success or FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &true; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_free_result</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $row = cubrid_fetch_assoc($result);
+        /* Now we free up the result and continue on with our script */
+        cubrid_free_result($result);
+        echo $row['id']."<br>".$row['address'];
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+1
+1st Avenue, New York
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_charset.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_charset.xml	                \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_charset.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-get-charset" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_get_charset</refname>
+  <refpurpose>Returns the current CUBRID connection charset</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_get_charset</methodname>
+   <methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   This function returns This function returns the current CUBRID connection \
charset. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is assumed. \
</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   A string that represents the CUBRID connection charset; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_get_charset</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+
+    printf("CUBRID current charset: %s\n", cubrid_get_charset ($link));
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+CUBRID current charset: iso8859-1
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_client_info.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_client_info.xml	            \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_client_info.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-get-client-info" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_get_client_info</refname>
+  <refpurpose>Returns a string that represents the client library \
version</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_get_client_info</methodname>
+   <void />
+  </methodsynopsis>
+  <para>
+    This function returns a string that represents the client library version.
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   A string that represents the client library version; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_get_client_info</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+printf("CUBRID client info: %s\n", cubrid_get_client_info());
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+CUBRID client info: 8.2.1
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_db_parameter.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_db_parameter.xml	           \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_db_parameter.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-get-db-parameter" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_get_db_parameter</refname>
+  <refpurpose>Returns the CUBRID database parameters</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_get_db_parameter</methodname>
+   <methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   This function returns the CUBRID database parameters or it returns FALSE on \
failure. It returns an array with the values for the following parameters: +  </para>
+  <para>
+  <simplelist>
+    <member><constant>CCI_PARAM_ISOLATION_LEVEL</constant></member>
+    <member><constant>CCI_PARAM_LOCK_TIMEOUT</constant></member>
+    <member><constant>CCI_PARAM_MAX_STRING_LENGTH</constant></member>
+    <member><constant>CCI_PARAM_AUTO_COMMIT</constant></member>
+  </simplelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is assumed. \
</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   An array with CUBRID database parameters; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_get_db_parameter</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    echo "CUBRID parameters:<br>";
+    print_r(cubrid_get_db_parameter($link));
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+CUBRID parameters:
+Array ( [PARAM_ISOLATION_LEVEL] => 3 [LOCK_TIMEOUT] => -1 [MAX_STRING_LENGTH] => \
1073741823 ) +]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_server_info.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_server_info.xml	            \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_get_server_info.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-get-server-info" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_get_server_info</refname>
+  <refpurpose>Returns a string that represents the CUBRID server \
version</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_get_server_info</methodname>
+   <methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns a string that represents the CUBRID server version.
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is assumed. \
</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   A string that represents the CUBRID server version; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_get_server_info</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+
+    printf("CUBRID server info: %s\n", cubrid_get_server_info($link));
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+CUBRID server info: 8.2.1.0209
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_insert_id.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_insert_id.xml	                  \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_insert_id.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-insert-id" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_insert_id</refname>
+  <refpurpose>Returns an array with the IDs generated for the \
<constant>AUTO_INCREMENT</constant> columns</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_insert_id</methodname>
+   <methodparam><type>string</type><parameter>class_name</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>connection_handle</parameter></methodparam>
 +  </methodsynopsis>
+  <para>
+    This function returns an array with the IDs generated for the \
<constant>AUTO_INCREMENT</constant> columns that were updated by the previous INSERT \
query. It returns an array with all the <constant>AUTO_INCREMENT</constant> columns \
and their values. It returns 0 if the previous query does not generate new rows, or \
it returns FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>class_name</parameter></term>
+  <listitem><para>The name of the class (table) that was used in the last INSERT \
statement for which the auto increment values are retrieved.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>connection_handle</parameter></term>
+  <listitem><para>The connection handle previously obtained by a call to \
<function>cubrid_connect</function>.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   An array with all the AUTO_INCREMENT columns and their values, on success.
+  </para>
+  <para>
+   0, if the previous query does not generate new rows.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_insert_id</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = "insert into employees (name, address, salary) values ('Michael', \
'Boston, MA', 3750)"; +    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $array_id = cubrid_insert_id("employees");
+        echo "Last insert id was ".$array_id["id"];
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+Last insert id was 10
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_list_dbs.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_list_dbs.xml	                   \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_list_dbs.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-list-dbs" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_list_dbs</refname>
+  <refpurpose>Returns an array with the list of all existing Cubrid \
databases</refpurpose> + </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>cubrid_list_dbs</methodname>
+   <methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   This function returns an array with the list of all existing Cubrid databases.
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is assumed. \
</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   An array with all existing Cubrid databases; on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_list_dbs</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    echo "CUBRID databases:<br>";
+    print_r(cubrid_list_dbs($link));
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+CUBRID databases:
+Array ( [0] => demodb2 [1] => cubrid3 )
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_num_fields.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_num_fields.xml	                 \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_num_fields.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-num-fields" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_num_fields</refname>
+  <refpurpose>Returns the number of columns in the result set</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>int</type><methodname>cubrid_num_fields</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+    This function returns the number of columns in the result set, on success, or it \
returns FALSE on failure. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Number of columns, on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_num_fields</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        $n = cubrid_num_fields($result);
+        echo "The resultset contains ".$n. " fields: ";
+        for ($i = 0; $i < $n; $i++)
+            echo cubrid_field_name($result, $i)." ";
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+The resultset contains 4 fields: id name address salary
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_real_escape_string.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_real_escape_string.xml	         \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_real_escape_string.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-real-escape-string" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_real_escape_string</refname>
+  <refpurpose>Returns the escaped string version of the given string</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_real_escape_string</methodname>
+   <methodparam><type>string</type><parameter>unescaped_string</parameter></methodparam>
 +   <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
 +  </methodsynopsis>
+  <para>
+    This function returns the escaped string version of the given string. It \
pre-appends backslashes to the following characters: <constant>\x00</constant>, \
<constant>\n</constant>, <constant>\r</constant>, <constant>\</constant>, \
<constant>'</constant>, <constant>"</constant>. This function must always (with few \
exceptions) be used to make data safe before sending a query to CUBRID. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>unescaped_string</parameter></term>
+  <listitem><para>The string that is to be escaped.</para></listitem>
+   </varlistentry>
+     <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is \
assumed.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Escaped string version of the given string, on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_real_escape_string</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $user = "'username'";
+    $password = "\"pass\"";
+    $query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'",
+            cubrid_real_escape_string($user),
+            cubrid_real_escape_string($password));
+
+    echo $query;
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+SELECT * FROM users WHERE user='\'username\'' AND password='\"pass\"'
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_result.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_result.xml	                     \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_result.xml	2010-08-20 09:35:20 \
UTC (rev 302537) @@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-result" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>cubrid_result</refname>
+  <refpurpose>Returns the value of a specific field in a specific row</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>string</type><methodname>cubrid_result</methodname>
+   <methodparam><type>int</type><parameter>result</parameter></methodparam>
+   <methodparam><type>int</type><parameter>row</parameter></methodparam>
+   <methodparam choice="opt"><type>mixed</type><parameter>field = \
0</parameter></methodparam> +  </methodsynopsis>
+  <para>
+    This function returns the value of a specific field in a specific row from a \
result set. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>result</parameter></term>
+  <listitem><para>This is the result handle that is evaluated. This result is \
obtained by a call to <function>cubrid_execute</function>.</para></listitem> +   \
</varlistentry> +     <varlistentry>
+  <term><parameter>row</parameter></term>
+  <listitem><para>The row number from the result that is being retrieved. Row \
numbers start at 0.</para></listitem> +   </varlistentry>
+   <varlistentry>
+  <term><parameter>field</parameter></term>
+  <listitem><para>The name or offset of the <parameter>field</parameter> being \
retrieved. It can be the field's offset, the field's name, or the field's table dot \
field name (tablename.fieldname). If the column name has been aliased ('select foo as \
bar from...'), use the alias instead of the column name. If undefined, the first \
field is retrieved.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Value of a specific field, on success.
+  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_result</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = 'SELECT id, name, address, salary FROM employees';
+    $result = cubrid_execute($link, $query);
+    if ($result)
+    {
+        echo "The address value of third record is ".cubrid_result($result, 2, 2);
+
+        cubrid_close_request($result);
+    }
+?>
+]]>
+   </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Result:
+The address value of third record is 81254, CA
+]]>
+    </screen>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Added: phpdoc/en/trunk/reference/cubrid/functions/cubrid_unbuffered_query.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/functions/cubrid_unbuffered_query.xml	           \
                (rev 0)
+++ phpdoc/en/trunk/reference/cubrid/functions/cubrid_unbuffered_query.xml	2010-08-20 \
09:35:20 UTC (rev 302537) @@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 301890 $ -->
+
+<refentry xml:id="function.cubrid-unbuffered-query" \
xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + \
<refnamediv> +  <refname>cubrid_unbuffered_query</refname>
+  <refpurpose>Performs a query without fetching the results into memory</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>resource</type><methodname>cubrid_unbuffered_query</methodname>
+   <methodparam><type>string</type><parameter>query</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>link_identifier</parameter></methodparam>
 +  </methodsynopsis>
+  <para>
+    This function performs a query without fetching the results into memory.
+  </para>
+  <para>
+  Known issue: it currently uses the normal version - the one that fetches the \
results. +  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+  <variablelist>
+    <varlistentry>
+  <term><parameter>query</parameter></term>
+  <listitem><para>A SQL query.</para></listitem>
+   </varlistentry>
+     <varlistentry>
+  <term><parameter>link_identifier</parameter></term>
+  <listitem><para>The CUBRID connection. If the link identifier is not specified, \
the last link opened by <function>cubrid_connect</function> is \
assumed.</para></listitem> +   </varlistentry>
+  </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   For SELECT, SHOW, DESCRIBE or EXPLAIN statements returns a resource on success.
+  </para>
+  <para>
+    For other type of SQL statements, UPDATE, DELETE, DROP, etc, returns &true; on \
success. +  </para>
+   <para>
+    &false; on failure.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title><function>cubrid_unbuffered_query</function> example</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+    $link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
+    if (!$link)
+    {
+        die('Could not connect.');
+    }
+    $query = "insert into employees (name, address, salary) values ('Michael', \
'Boston, MA', 3750)"; +    cubrid_unbuffered_query($query, $link);
+?>
+]]>
+   </programlisting>
+  </example>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->

Modified: phpdoc/en/trunk/reference/cubrid/versions.xml
===================================================================
--- phpdoc/en/trunk/reference/cubrid/versions.xml	2010-08-20 09:35:03 UTC (rev \
                302536)
+++ phpdoc/en/trunk/reference/cubrid/versions.xml	2010-08-20 09:35:20 UTC (rev \
302537) @@ -20,6 +20,7 @@
  <function name='cubrid_commit' from='PHP 4, PHP 5'/>
  <function name='cubrid_connect' from='PHP 4, PHP 5'/>
  <function name='cubrid_current_oid' from='PHP 4, PHP 5'/>
+ <function name='cubrid_data_seek' from='PHP 4, PHP 5'/>
  <function name='cubrid_disconnect' from='PHP 4, PHP 5'/>
  <function name='cubrid_drop' from='PHP 4, PHP 5'/>
  <function name='cubrid_error_code_facility' from='PHP 4, PHP 5'/>
@@ -27,18 +28,39 @@
  <function name='cubrid_error_msg' from='PHP 4, PHP 5'/>
  <function name='cubrid_execute' from='PHP 4, PHP 5'/>
  <function name='cubrid_fetch' from='PHP 4, PHP 5'/>
+ <function name='cubrid_fetch_assoc' from='PHP 4, PHP 5'/>
+ <function name='cubrid_fetch_field' from='PHP 4, PHP 5'/>
+ <function name='cubrid_fetch_lengths' from='PHP 4, PHP 5'/>
+ <function name='cubrid_fetch_object' from='PHP 4, PHP 5'/>
+ <function name='cubrid_fetch_row' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_flags' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_len' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_name' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_seek' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_table' from='PHP 4, PHP 5'/>
+ <function name='cubrid_field_type' from='PHP 4, PHP 5'/>
+ <function name='cubrid_free_result' from='PHP 4, PHP 5'/>
+ <function name='cubrid_get' from='PHP 4, PHP 5'/>
+ <function name='cubrid_get_charset' from='PHP 4, PHP 5'/>
  <function name='cubrid_get_class_name' from='PHP 4, PHP 5'/>
- <function name='cubrid_get' from='PHP 4, PHP 5'/>
+ <function name='cubrid_get_client_info' from='PHP 4, PHP 5'/>
+ <function name='cubrid_get_db_parameter' from='PHP 4, PHP 5'/>
+ <function name='cubrid_get_server_info' from='PHP 4, PHP 5'/>
+ <function name='cubrid_insert_id' from='PHP 4, PHP 5'/>
  <function name='cubrid_is_instance' from='PHP 4, PHP 5'/>
+ <function name='cubrid_list_dbs' from='PHP 4, PHP 5'/>
  <function name='cubrid_load_from_glo' from='PHP 4, PHP 5'/>
  <function name='cubrid_lock_read' from='PHP 4, PHP 5'/>
  <function name='cubrid_lock_write' from='PHP 4, PHP 5'/>
  <function name='cubrid_move_cursor' from='PHP 4, PHP 5'/>
  <function name='cubrid_new_glo' from='PHP 4, PHP 5'/>
  <function name='cubrid_num_cols' from='PHP 4, PHP 5'/>
+ <function name='cubrid_num_fields' from='PHP 4, PHP 5'/>
  <function name='cubrid_num_rows' from='PHP 4, PHP 5'/>
  <function name='cubrid_prepare' from='PHP 4, PHP 5'/>
  <function name='cubrid_put' from='PHP 4, PHP 5'/>
+ <function name='cubrid_real_escape_string' from='PHP 4, PHP 5'/>
+ <function name='cubrid_result' from='PHP 4, PHP 5'/>
  <function name='cubrid_rollback' from='PHP 4, PHP 5'/>
  <function name='cubrid_save_to_glo' from='PHP 4, PHP 5'/>
  <function name='cubrid_schema' from='PHP 4, PHP 5'/>
@@ -48,6 +70,7 @@
  <function name='cubrid_seq_put' from='PHP 4, PHP 5'/>
  <function name='cubrid_set_add' from='PHP 4, PHP 5'/>
  <function name='cubrid_set_drop' from='PHP 4, PHP 5'/>
+ <function name='cubrid_unbuffered_query' from='PHP 4, PHP 5'/>
  <function name='cubrid_version' from='PHP 4, PHP 5'/>
 </versions>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic