cvs: peardoc /en/package/database/mdb/mdb-common execute.xml executemultiple.xml fetchinto.xml getall.xml getassoc.xml getcol.xml getone.xml
getrow.xml

From: Date: Mon, 28 Jul 2003 12:47:09 +0000
Subject: cvs: peardoc /en/package/database/mdb/mdb-common execute.xml executemultiple.xml fetchinto.xml getall.xml getassoc.xml getcol.xml getone.xml
getrow.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1131@lists.php.net to get a copy of this message
lsmith Mon Jul 28 08:47:09 2003 EDT Modified files: /peardoc/en/package/database/mdb/mdb-common getrow.xml getone.xml getcol.xml getassoc.xml getall.xml fetchinto.xml executemultiple.xml execute.xml Log: minor fixes

Index: peardoc/en/package/database/mdb/mdb-common/getrow.xml diff -u peardoc/en/package/database/mdb/mdb-common/getrow.xml:1.2 peardoc/en/package/database/mdb/mdb-common/getrow.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/getrow.xml:1.2 Wed Jun 4 02:17:05 2003 +++ peardoc/en/package/database/mdb/mdb-common/getrow.xml Mon Jul 28 08:47:09 2003 @@ -1,260 +1,260 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.database.mdb.mdb-common.getrow"> - <refnamediv> - <refname>MDB_Common::getRow()</refname> - <refpurpose>fetch the first row</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'MDB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>array <function>&amp;getRow</function> - </funcdef> - <paramdef>string <parameter>$query</parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$types = NULL</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$params = array()</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$param_types = NULL</optional> - </parameter> - </paramdef> - <paramdef>integer - <parameter> - <optional>$fetchmode = - <constant>MDB_FETCHMODE_DEFAULT</constant> - </optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.mdb.mdb-common.getrow.desc"> - &title.desc; - <para> - Fetch the first row of data returned from a query. The function takes - care of doing the query and freeing the results when finished. - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getrow.parameter"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$query</parameter> - </term> - <listitem> - <para> - the SQL query - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$types</parameter> - </term> - <listitem> - <para> - if supplied, the types of the columns in the result set will be set for fetching - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - if supplied, - <link linkend="package.database.mdb.intro-execute"> - <function>prepare</function>/ - <function>execute</function> - </link> will - be used with this array as - execute parameters - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$param_types</parameter> - </term> - <listitem> - <para> - if supplied, the values in $param will automatically set to the passed datatypes - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.int; - <parameter>$fetchmode</parameter> - </term> - <listitem> - <para> - the fetch mode to use, - default is <constant>MDB_FETCHMODE_DEFAULT</constant> - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getrow.return"> - &title.returns; - <para> - <parameter>array</parameter> - the first row of results as an array - indexed from 0 or a &class.mdb-error;, if fail - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getrow.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Error code</entry> - <entry>Error message</entry> - <entry>Reason</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry> - <constant>MDB_ERROR_INVALID</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NEED_MORE_DATA</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - To less data for filling the prepared SQL statment. - </entry> - <entry> - Check the number of wild cards given in the SQL statment - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>. Check the count of - entries in the array for <parameter>$params</parameter>. The count - of entries have to be equal to the number of wild cards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NO_DB_SELECTED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> - in <link linkend="package.database.mdb.mdb.connect"> - <function>connect</function> - </link>. - </entry> - </row> - <row> - <entry>every other error code</entry> - <entry/> - <entry> - Database specific error - </entry> - <entry> - Check the database related section of - <ulink url="www.php.net/manual/">PHP-Manual</ulink> - to detect the reason for this error. In the most cases - a misformed SQL statment. Ie. using LIMIT in a SQL-Statment - for an Oracle database. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getrow.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getrow.see"> - &title.see; - <para> - <link linkend="package.database.mdb.mdb-common.query"> - <function>query</function> - </link>, - <link linkend="package.database.mdb.mdb-common.limitquery"> - <function>limitQuery</function> - </link>, - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link> - <link linkend="package.database.mdb.mdb-common.execute"> - <function>execute</function> - </link>, - <link linkend="package.database.mdb.mdb-common.getcol"> - <function>getCol</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getrow"> - <function>getRow</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getassoc"> - <function>getAssoc</function> - </link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-executeMultiple-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<!-- $Revision: 1.3 $ --> +<refentry id="package.database.mdb.mdb-common.getrow"> + <refnamediv> + <refname>MDB_Common::getRow()</refname> + <refpurpose>fetch the first row</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'MDB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>array <function>&amp;getRow</function> + </funcdef> + <paramdef>string <parameter>$query</parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$types = &null;</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$params = array()</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$param_types = &null;</optional> + </parameter> + </paramdef> + <paramdef>integer + <parameter> + <optional>$fetchmode = + <constant>MDB_FETCHMODE_DEFAULT</constant> + </optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.mdb.mdb-common.getrow.desc"> + &title.desc; + <para> + Fetch the first row of data returned from a query. The function takes + care of doing the query and freeing the results when finished. + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getrow.parameter"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$query</parameter> + </term> + <listitem> + <para> + the SQL query + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$types</parameter> + </term> + <listitem> + <para> + if supplied, the types of the columns in the result set will be set for fetching + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + if supplied, + <link linkend="package.database.mdb.intro-execute"> + <function>prepare</function>/ + <function>execute</function> + </link> will + be used with this array as + execute parameters + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$param_types</parameter> + </term> + <listitem> + <para> + if supplied, the values in $param will automatically set to the passed datatypes + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.int; + <parameter>$fetchmode</parameter> + </term> + <listitem> + <para> + the fetch mode to use, + default is <constant>MDB_FETCHMODE_DEFAULT</constant> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getrow.return"> + &title.returns; + <para> + <parameter>array</parameter> - the first row of results as an array + indexed from 0 or a &class.mdb-error;, if fail + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getrow.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Error code</entry> + <entry>Error message</entry> + <entry>Reason</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + <constant>MDB_ERROR_INVALID</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statemt using wildcards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NEED_MORE_DATA</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + To less data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wild cards given in the SQL statment + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>. Check the count of + entries in the array for <parameter>$params</parameter>. The count + of entries have to be equal to the number of wild cards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NO_DB_SELECTED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + No database was choosen. + </entry> + <entry> + Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> + in <link linkend="package.database.mdb.mdb.connect"> + <function>connect</function> + </link>. + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry/> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statment. Ie. using LIMIT in a SQL-Statment + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getrow.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getrow.see"> + &title.see; + <para> + <link linkend="package.database.mdb.mdb-common.query"> + <function>query</function> + </link>, + <link linkend="package.database.mdb.mdb-common.limitquery"> + <function>limitQuery</function> + </link>, + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link> + <link linkend="package.database.mdb.mdb-common.execute"> + <function>execute</function> + </link>, + <link linkend="package.database.mdb.mdb-common.getcol"> + <function>getCol</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getrow"> + <function>getRow</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getassoc"> + <function>getAssoc</function> + </link> + </para> + </refsect1> +</refentry> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-executeMultiple-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/en/package/database/mdb/mdb-common/getone.xml diff -u peardoc/en/package/database/mdb/mdb-common/getone.xml:1.2 peardoc/en/package/database/mdb/mdb-common/getone.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/getone.xml:1.2 Wed Jun 4 02:17:05 2003 +++ peardoc/en/package/database/mdb/mdb-common/getone.xml Mon Jul 28 08:47:09 2003 @@ -1,246 +1,246 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.database.mdb.mdb-common.getone"> - <refnamediv> - <refname>MDB_Common::getOne()</refname> - <refpurpose>fetch the first column of the first row</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'MDB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>&amp;getOne</function> - </funcdef> - <paramdef>string <parameter>$query</parameter> - </paramdef> - <paramdef> - string <parameter> - <optional>$type = NULL</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$params = array()</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$param_types = NULL</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.mdb.mdb-common.getone.desc"> - &title.desc; - <para> - Fetch the first column of the first row of data returned from - a query. The function takes care of doing the query and freeing - the results when finished. - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getone.parameter"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$query</parameter> - </term> - <listitem> - <para> - the SQL query or the statement to - prepare - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.string; - <parameter>$type</parameter> - </term> - <listitem> - <para> - if supplied, the type of the column in the result set will be set for fetching - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - if supplied, - <link linkend="package.database.mdb.intro-execute"> - <function>prepare</function>/ - <function>execute</function> - </link> will - be used with this array as - execute parameters - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$param_types</parameter> - </term> - <listitem> - <para> - if supplied, the values in $param will automatically set to the passed datatypes - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getone.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - the returned value or - a &class.mdb-error;, if fail - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getone.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Error code</entry> - <entry>Error message</entry> - <entry>Reason</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry> - <constant>MDB_ERROR_INVALID</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NEED_MORE_DATA</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - To less data for filling the prepared SQL statment. - </entry> - <entry> - Check the number of wild cards given in the SQL statment - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>. Check the count of - entries in the array for <parameter>$params</parameter>. The count - of entries have to be equal to the number of wild cards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NO_DB_SELECTED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> - in <link linkend="package.database.mdb.mdb.connect"> - <function>connect</function> - </link>. - </entry> - </row> - <row> - <entry>every other error code</entry> - <entry/> - <entry> - Database specific error - </entry> - <entry> - Check the database related section of - <ulink url="www.php.net/manual/">PHP-Manual</ulink> - to detect the reason for this error. In the most cases - a misformed SQL statment. Ie. using LIMIT in a SQL-Statment - for an Oracle database. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getone.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getone.see"> - &title.see; - <para> - <link linkend="package.database.mdb.mdb-common.query"> - <function>query</function> - </link>, - <link linkend="package.database.mdb.mdb-common.limitquery"> - <function>limitQuery</function> - </link>, - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>, - <link linkend="package.database.mdb.mdb-common.execute"> - <function>execute</function> - </link>, - <link linkend="package.database.mdb.mdb-common.getrow"> - <function>getRow</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getcol"> - <function>getCol</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getone"> - <function>getCol</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getassoc"> - <function>getCol</function> - </link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-executeMultiple-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<!-- $Revision: 1.3 $ --> +<refentry id="package.database.mdb.mdb-common.getone"> + <refnamediv> + <refname>MDB_Common::getOne()</refname> + <refpurpose>fetch the first column of the first row</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'MDB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>&amp;getOne</function> + </funcdef> + <paramdef>string <parameter>$query</parameter> + </paramdef> + <paramdef> + string <parameter> + <optional>$type = &null;</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$params = array()</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$param_types = &null;</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.mdb.mdb-common.getone.desc"> + &title.desc; + <para> + Fetch the first column of the first row of data returned from + a query. The function takes care of doing the query and freeing + the results when finished. + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getone.parameter"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$query</parameter> + </term> + <listitem> + <para> + the SQL query or the statement to + prepare + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.string; + <parameter>$type</parameter> + </term> + <listitem> + <para> + if supplied, the type of the column in the result set will be set for fetching + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + if supplied, + <link linkend="package.database.mdb.intro-execute"> + <function>prepare</function>/ + <function>execute</function> + </link> will + be used with this array as + execute parameters + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$param_types</parameter> + </term> + <listitem> + <para> + if supplied, the values in $param will automatically set to the passed datatypes + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getone.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - the returned value or + a &class.mdb-error;, if fail + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getone.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Error code</entry> + <entry>Error message</entry> + <entry>Reason</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + <constant>MDB_ERROR_INVALID</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statemt using wildcards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NEED_MORE_DATA</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + To less data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wild cards given in the SQL statment + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>. Check the count of + entries in the array for <parameter>$params</parameter>. The count + of entries have to be equal to the number of wild cards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NO_DB_SELECTED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + No database was choosen. + </entry> + <entry> + Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> + in <link linkend="package.database.mdb.mdb.connect"> + <function>connect</function> + </link>. + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry/> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statment. Ie. using LIMIT in a SQL-Statment + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getone.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getone.see"> + &title.see; + <para> + <link linkend="package.database.mdb.mdb-common.query"> + <function>query</function> + </link>, + <link linkend="package.database.mdb.mdb-common.limitquery"> + <function>limitQuery</function> + </link>, + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>, + <link linkend="package.database.mdb.mdb-common.execute"> + <function>execute</function> + </link>, + <link linkend="package.database.mdb.mdb-common.getrow"> + <function>getRow</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getcol"> + <function>getCol</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getone"> + <function>getCol</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getassoc"> + <function>getCol</function> + </link> + </para> + </refsect1> +</refentry> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-executeMultiple-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/en/package/database/mdb/mdb-common/getcol.xml diff -u peardoc/en/package/database/mdb/mdb-common/getcol.xml:1.2 peardoc/en/package/database/mdb/mdb-common/getcol.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/getcol.xml:1.2 Wed Jun 4 02:17:05 2003 +++ peardoc/en/package/database/mdb/mdb-common/getcol.xml Mon Jul 28 08:47:09 2003 @@ -1,274 +1,274 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.database.mdb.mdb-common.getcol"> - <refnamediv> - <refname>MDB_Common::getCol()</refname> - <refpurpose>Fetch a single column</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'MDB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>array <function>&amp;getCol</function> - </funcdef> - <paramdef> - string <parameter>$query</parameter> - </paramdef> - <paramdef> - string <parameter> - <optional>$type = NULL</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$params = array()</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$param_types = NULL</optional> - </parameter> - </paramdef> - <paramdef> - mixed <parameter> - <optional>$colnum = 0</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.mdb.mdb-common.getcol.desc"> - &title.desc; - <para> - Fetch a single column from a result set of a query. The function takes - care of doing the query and freeing the results when finished. - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getcol.parameter"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$query</parameter> - </term> - <listitem> - <para> - the SQL query - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.string; - <parameter>$type</parameter> - </term> - <listitem> - <para> - if supplied, the type of the column in the result set will be set for fetching - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - if supplied, - <link linkend="package.database.mdb.intro-execute"> - <function>prepare</function>/ - <function>execute</function> - </link> will - be used with this array as - execute parameters - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$param_types</parameter> - </term> - <listitem> - <para> - if supplied, the values in $param will automatically set to the passed datatypes - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.mixed; - <parameter>$colnum</parameter> - </term> - <listitem> - <para> - which column to return (integer [column - number, starting at 0] or string [column name]) - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getcol.return"> - &title.returns; - <para> - <parameter>array</parameter> - the first row of results as an array - indexed from 0 or a &class.mdb-error;, if fail - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getcol.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Error code</entry> - <entry>Error message</entry> - <entry>Reason</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry> - <constant>MDB_ERROR_INVALID</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NEED_MORE_DATA</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - To less data for filling the prepared SQL statment. - </entry> - <entry> - Check the number of wild cards given in the SQL statment - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>. Check the count of - entries in the array for <parameter>$params</parameter>. The count - of entries have to be equal to the number of wild cards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NO_DB_SELECTED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> - in <link linkend="package.database.mdb.mdb.connect"> - <function>connect</function> - </link>. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_TRUNCATED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - The result set contains fewer then two columns - </entry> - <entry> - Check the SQL query or choose another - <function>get*</function> function - </entry> - </row> - <row> - <entry>every other error code</entry> - <entry/> - <entry> - Database specific error - </entry> - <entry> - Check the database related section of - <ulink url="www.php.net/manual/">PHP-Manual</ulink> - to detect the reason for this error. In the most cases - a misformed SQL statment. Ie. using LIMIT in a SQL-Statment - for an Oracle database. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getcol.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getcol.see"> - &title.see; - <para> - <link linkend="package.database.mdb.mdb-common.query"> - <function>query</function> - </link>, - <link linkend="package.database.mdb.mdb-common.limitquery"> - <function>limitQuery</function> - </link>, - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>, - <link linkend="package.database.mdb.mdb-common.execute"> - <function>execute</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getrow"> - <function>getRow</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getone"> - <function>getOne</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getone"> - <function>getAssoc</function> - </link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-executeMultiple-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<!-- $Revision: 1.3 $ --> +<refentry id="package.database.mdb.mdb-common.getcol"> + <refnamediv> + <refname>MDB_Common::getCol()</refname> + <refpurpose>Fetch a single column</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'MDB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>array <function>&amp;getCol</function> + </funcdef> + <paramdef> + string <parameter>$query</parameter> + </paramdef> + <paramdef> + string <parameter> + <optional>$type = &null;</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$params = array()</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$param_types = &null;</optional> + </parameter> + </paramdef> + <paramdef> + mixed <parameter> + <optional>$colnum = 0</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.mdb.mdb-common.getcol.desc"> + &title.desc; + <para> + Fetch a single column from a result set of a query. The function takes + care of doing the query and freeing the results when finished. + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getcol.parameter"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$query</parameter> + </term> + <listitem> + <para> + the SQL query + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.string; + <parameter>$type</parameter> + </term> + <listitem> + <para> + if supplied, the type of the column in the result set will be set for fetching + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + if supplied, + <link linkend="package.database.mdb.intro-execute"> + <function>prepare</function>/ + <function>execute</function> + </link> will + be used with this array as + execute parameters + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$param_types</parameter> + </term> + <listitem> + <para> + if supplied, the values in $param will automatically set to the passed datatypes + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.mixed; + <parameter>$colnum</parameter> + </term> + <listitem> + <para> + which column to return (integer [column + number, starting at 0] or string [column name]) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getcol.return"> + &title.returns; + <para> + <parameter>array</parameter> - the first row of results as an array + indexed from 0 or a &class.mdb-error;, if fail + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getcol.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Error code</entry> + <entry>Error message</entry> + <entry>Reason</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + <constant>MDB_ERROR_INVALID</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statemt using wildcards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NEED_MORE_DATA</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + To less data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wild cards given in the SQL statment + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>. Check the count of + entries in the array for <parameter>$params</parameter>. The count + of entries have to be equal to the number of wild cards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NO_DB_SELECTED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + No database was choosen. + </entry> + <entry> + Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> + in <link linkend="package.database.mdb.mdb.connect"> + <function>connect</function> + </link>. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_TRUNCATED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + The result set contains fewer then two columns + </entry> + <entry> + Check the SQL query or choose another + <function>get*</function> function + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry/> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statment. Ie. using LIMIT in a SQL-Statment + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getcol.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getcol.see"> + &title.see; + <para> + <link linkend="package.database.mdb.mdb-common.query"> + <function>query</function> + </link>, + <link linkend="package.database.mdb.mdb-common.limitquery"> + <function>limitQuery</function> + </link>, + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>, + <link linkend="package.database.mdb.mdb-common.execute"> + <function>execute</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getrow"> + <function>getRow</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getone"> + <function>getOne</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getone"> + <function>getAssoc</function> + </link> + </para> + </refsect1> +</refentry> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-executeMultiple-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/en/package/database/mdb/mdb-common/getassoc.xml diff -u peardoc/en/package/database/mdb/mdb-common/getassoc.xml:1.2 peardoc/en/package/database/mdb/mdb-common/getassoc.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/getassoc.xml:1.2 Wed Jun 4 02:17:05 2003 +++ peardoc/en/package/database/mdb/mdb-common/getassoc.xml Mon Jul 28 08:47:09 2003 @@ -1,323 +1,323 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.database.mdb.mdb-common.getassoc"> - <refnamediv> - <refname>MDB_Common::getAssoc()</refname> - <refpurpose>fetch result set as associative array</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'MDB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>array <function>&amp;getAssoc</function> - </funcdef> - <paramdef> - string <parameter>$query</parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$types = NULL</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$params = array()</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$param_types = NULL</optional> - </parameter> - </paramdef> - <paramdef>integer - <parameter> - <optional>$fetchmode = - <constant>MDB_FETCHMODE_DEFAULT</constant> - </optional> - </parameter> - </paramdef> - <paramdef> - boolean <parameter> - <optional>$force_array = &false;</optional> - </parameter> - </paramdef> - <paramdef> boolean - <parameter> - <optional>$group = &false;</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.mdb.mdb-common.getassoc.desc"> - &title.desc; - <para> - Fetch the entire result set of a query and return it as an - associative array using the first column as the key. The function takes - care of doing the query and freeing the results when finished. - - If the result set contains more than two columns, the value - will be an array of the values from column 2 to n. If the result - set contains only two columns, the returned value will be a - scalar with the value of the second column (unless forced to an - array with the $force_array parameter). - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getassoc.parameter"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$query</parameter> - </term> - <listitem> - <para> - the SQL query - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$types</parameter> - </term> - <listitem> - <para> - if supplied, the types of the columns in the result set will be set for fetching - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - if supplied, - <link linkend="package.database.mdb.intro-execute"> - <function>prepare</function>/ - <function>execute</function> - </link> will - be used with this array as - execute parameters - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$param_types</parameter> - </term> - <listitem> - <para> - if supplied, the values in $param will automatically set to the passed datatypes - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.int; - <parameter>$fetchmode</parameter> - </term> - <listitem> - <para> - the fetch mode to use - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.bool; - <parameter>$force_array</parameter> - </term> - <listitem> - <para> - used only if the query returns - exactly two columns. - If &true;, the values of the returned array - will be one-element arrays instead of scalars. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.bool; - <parameter>boolean $group</parameter> - </term> - <listitem> - <para> - if &true;, the values of - the returned array is wrapped in another array. - If the same key value (in the first column) - repeats itself, the values - will be appended to this array instead - of overwriting the - existing values. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getassoc.return"> - &title.returns; - <para> - <parameter>array</parameter> - associative array with results from the - query. - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getassoc.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Error code</entry> - <entry>Error message</entry> - <entry>Reason</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry> - <constant>MDB_ERROR_INVALID</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NEED_MORE_DATA</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - To less data for filling the prepared SQL statment. - </entry> - <entry> - Check the number of wild cards given in the SQL statment - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>. Check the count of - entries in the array for <parameter>$params</parameter>. The count - of entries have to be equal to the number of wild cards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NO_DB_SELECTED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> - in <link linkend="package.database.mdb.mdb.connect"> - <function>connect</function> - </link>. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_TRUNCATED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - The result set contains fewer then two columns - </entry> - <entry> - Check the SQL query or choose another - <function>get*</function> function - </entry> - </row> - <row> - <entry>every other error code</entry> - <entry/> - <entry> - Database specific error - </entry> - <entry> - Check the database related section of - <ulink url="www.php.net/manual/">PHP-Manual</ulink> - to detect the reason for this error. In the most cases - a misformed SQL statment. Ie. using LIMIT in a SQL-Statment - for an Oracle database. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getassoc.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getassoc.see"> - &title.see; - <para> - <link linkend="package.database.mdb.mdb-common.query"> - <function>query</function> - </link>, - <link linkend="package.database.mdb.mdb-common.limitquery"> - <function>limitQuery</function> - </link>, - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>, - <link linkend="package.database.mdb.mdb-common.execute"> - <function>execute</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getrow"> - <function>getRow</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getone"> - <function>getOne</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getcol"> - <function>getCol</function> - </link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-executeMultiple-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<!-- $Revision: 1.3 $ --> +<refentry id="package.database.mdb.mdb-common.getassoc"> + <refnamediv> + <refname>MDB_Common::getAssoc()</refname> + <refpurpose>fetch result set as associative array</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'MDB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>array <function>&amp;getAssoc</function> + </funcdef> + <paramdef> + string <parameter>$query</parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$types = &null;</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$params = array()</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$param_types = &null;</optional> + </parameter> + </paramdef> + <paramdef>integer + <parameter> + <optional>$fetchmode = + <constant>MDB_FETCHMODE_DEFAULT</constant> + </optional> + </parameter> + </paramdef> + <paramdef> + boolean <parameter> + <optional>$force_array = &false;</optional> + </parameter> + </paramdef> + <paramdef> boolean + <parameter> + <optional>$group = &false;</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.mdb.mdb-common.getassoc.desc"> + &title.desc; + <para> + Fetch the entire result set of a query and return it as an + associative array using the first column as the key. The function takes + care of doing the query and freeing the results when finished. + + If the result set contains more than two columns, the value + will be an array of the values from column 2 to n. If the result + set contains only two columns, the returned value will be a + scalar with the value of the second column (unless forced to an + array with the $force_array parameter). + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getassoc.parameter"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$query</parameter> + </term> + <listitem> + <para> + the SQL query + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$types</parameter> + </term> + <listitem> + <para> + if supplied, the types of the columns in the result set will be set for fetching + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + if supplied, + <link linkend="package.database.mdb.intro-execute"> + <function>prepare</function>/ + <function>execute</function> + </link> will + be used with this array as + execute parameters + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$param_types</parameter> + </term> + <listitem> + <para> + if supplied, the values in $param will automatically set to the passed datatypes + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.int; + <parameter>$fetchmode</parameter> + </term> + <listitem> + <para> + the fetch mode to use + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.bool; + <parameter>$force_array</parameter> + </term> + <listitem> + <para> + used only if the query returns + exactly two columns. + If &true;, the values of the returned array + will be one-element arrays instead of scalars. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.bool; + <parameter>boolean $group</parameter> + </term> + <listitem> + <para> + if &true;, the values of + the returned array is wrapped in another array. + If the same key value (in the first column) + repeats itself, the values + will be appended to this array instead + of overwriting the + existing values. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getassoc.return"> + &title.returns; + <para> + <parameter>array</parameter> - associative array with results from the + query. + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getassoc.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Error code</entry> + <entry>Error message</entry> + <entry>Reason</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + <constant>MDB_ERROR_INVALID</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statemt using wildcards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NEED_MORE_DATA</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + To less data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wild cards given in the SQL statment + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>. Check the count of + entries in the array for <parameter>$params</parameter>. The count + of entries have to be equal to the number of wild cards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NO_DB_SELECTED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + No database was choosen. + </entry> + <entry> + Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> + in <link linkend="package.database.mdb.mdb.connect"> + <function>connect</function> + </link>. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_TRUNCATED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + The result set contains fewer then two columns + </entry> + <entry> + Check the SQL query or choose another + <function>get*</function> function + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry/> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statment. Ie. using LIMIT in a SQL-Statment + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getassoc.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getassoc.see"> + &title.see; + <para> + <link linkend="package.database.mdb.mdb-common.query"> + <function>query</function> + </link>, + <link linkend="package.database.mdb.mdb-common.limitquery"> + <function>limitQuery</function> + </link>, + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>, + <link linkend="package.database.mdb.mdb-common.execute"> + <function>execute</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getrow"> + <function>getRow</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getone"> + <function>getOne</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getcol"> + <function>getCol</function> + </link> + </para> + </refsect1> +</refentry> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-executeMultiple-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/en/package/database/mdb/mdb-common/getall.xml diff -u peardoc/en/package/database/mdb/mdb-common/getall.xml:1.2 peardoc/en/package/database/mdb/mdb-common/getall.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/getall.xml:1.2 Wed Jun 4 02:17:05 2003 +++ peardoc/en/package/database/mdb/mdb-common/getall.xml Mon Jul 28 08:47:09 2003 @@ -1,270 +1,270 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.database.mdb.mdb-common.getall"> - <refnamediv> - <refname>MDB_Common::getAll()</refname> - <refpurpose>Fetch all rows</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'MDB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>array <function>&amp;getAll</function> - </funcdef> - <paramdef> - string <parameter>$query</parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$types = NULL</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$params = array()</optional> - </parameter> - </paramdef> - <paramdef> - array <parameter> - <optional>$param_types = NULL</optional> - </parameter> - </paramdef> - <paramdef> - integer <parameter> - <optional>$fetchmode = - <constant>MDB_FETCHMODE_DEFAULT</constant> - </optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.mdb.mdb-common.getall.desc"> - &title.desc; - <para> - Fetch the entire result set of a query and return it into a nested array. The function takes - care of doing the query and freeing the results when finished. - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getall.parameter"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$query</parameter> - </term> - <listitem> - <para> - the SQL query - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$types</parameter> - </term> - <listitem> - <para> - if supplied, the types of the columns in the result set will be set for fetching - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - if supplied, - <link linkend="package.database.mdb.intro-execute"> - <function>prepare</function>/ - <function>execute</function> - </link> will - be used with this array as - execute parameters - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.array; - <parameter>$param_types</parameter> - </term> - <listitem> - <para> - if supplied, the values in $param will automatically set to the passed datatypes - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - &type.int; - <parameter>$fetchmode</parameter> - </term> - <listitem> - <para> - the fetch mode to use, - default is <constant>MDB_FETCHMODE_DEFAULT</constant> - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getall.return"> - &title.returns; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>array</parameter> - an nested array or a - &class.mdb-error;, if fail - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getall.throws"> - &title.throws; - <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="4"> - <thead> - <row> - <entry>Error code</entry> - <entry>Error message</entry> - <entry>Reason</entry> - <entry>Solution</entry> - </row> - </thead> - <tbody> - <row> - <entry> - <constant>MDB_ERROR_INVALID</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NEED_MORE_DATA</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - To less data for filling the prepared SQL statment. - </entry> - <entry> - Check the number of wild cards given in the SQL statment - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link>. Check the count of - entries in the array for <parameter>$params</parameter>. The count - of entries have to be equal to the number of wild cards. - </entry> - </row> - <row> - <entry> - <constant>MDB_ERROR_NO_DB_SELECTED</constant> - </entry> - <entry> - <constant>null</constant> - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> - in <link linkend="package.database.mdb.mdb.connect"> - <function>connect</function> - </link>. - </entry> - </row> - <row> - <entry>every other error code</entry> - <entry/> - <entry> - Database specific error - </entry> - <entry> - Check the database related section of - <ulink url="www.php.net/manual/">PHP-Manual</ulink> - to detect the reason for this error. In the most cases - a misformed SQL statment. Ie. using LIMIT in a SQL-Statment - for an Oracle database. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getall.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.database.mdb.mdb-common.getall.see"> - &title.see; - <para> - <link linkend="package.database.mdb.mdb-common.query"> - <function>query</function> - </link>, - <link linkend="package.database.mdb.mdb-common.limitquery"> - <function>limitQuery</function> - </link>, - <link linkend="package.database.mdb.mdb-common.prepare"> - <function>prepare</function> - </link> - <link linkend="package.database.mdb.mdb-common.execute"> - <function>execute</function> - </link>, - <link linkend="package.database.mdb.mdb-common.getcol"> - <function>getCol</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getall"> - <function>getRow</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getassoc"> - <function>getAssoc</function> - </link> - ,<link linkend="package.database.mdb.mdb-common.getone"> - <function>getOne</function> - </link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-executeMultiple-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<!-- $Revision: 1.3 $ --> +<refentry id="package.database.mdb.mdb-common.getall"> + <refnamediv> + <refname>MDB_Common::getAll()</refname> + <refpurpose>Fetch all rows</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'MDB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>array <function>&amp;getAll</function> + </funcdef> + <paramdef> + string <parameter>$query</parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$types = &null;</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$params = array()</optional> + </parameter> + </paramdef> + <paramdef> + array <parameter> + <optional>$param_types = &null;</optional> + </parameter> + </paramdef> + <paramdef> + integer <parameter> + <optional>$fetchmode = + <constant>MDB_FETCHMODE_DEFAULT</constant> + </optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.mdb.mdb-common.getall.desc"> + &title.desc; + <para> + Fetch the entire result set of a query and return it into a nested array. The function takes + care of doing the query and freeing the results when finished. + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getall.parameter"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$query</parameter> + </term> + <listitem> + <para> + the SQL query + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$types</parameter> + </term> + <listitem> + <para> + if supplied, the types of the columns in the result set will be set for fetching + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + if supplied, + <link linkend="package.database.mdb.intro-execute"> + <function>prepare</function>/ + <function>execute</function> + </link> will + be used with this array as + execute parameters + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.array; + <parameter>$param_types</parameter> + </term> + <listitem> + <para> + if supplied, the values in $param will automatically set to the passed datatypes + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.int; + <parameter>$fetchmode</parameter> + </term> + <listitem> + <para> + the fetch mode to use, + default is <constant>MDB_FETCHMODE_DEFAULT</constant> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getall.return"> + &title.returns; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>array</parameter> - an nested array or a + &class.mdb-error;, if fail + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getall.throws"> + &title.throws; + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Error code</entry> + <entry>Error message</entry> + <entry>Reason</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + <constant>MDB_ERROR_INVALID</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statemt using wildcards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NEED_MORE_DATA</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + To less data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wild cards given in the SQL statment + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link>. Check the count of + entries in the array for <parameter>$params</parameter>. The count + of entries have to be equal to the number of wild cards. + </entry> + </row> + <row> + <entry> + <constant>MDB_ERROR_NO_DB_SELECTED</constant> + </entry> + <entry> + <constant>null</constant> + </entry> + <entry> + No database was choosen. + </entry> + <entry> + Check the <link linkend="package.database.mdb.intro-dsn">DSN</link> + in <link linkend="package.database.mdb.mdb.connect"> + <function>connect</function> + </link>. + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry/> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statment. Ie. using LIMIT in a SQL-Statment + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getall.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.database.mdb.mdb-common.getall.see"> + &title.see; + <para> + <link linkend="package.database.mdb.mdb-common.query"> + <function>query</function> + </link>, + <link linkend="package.database.mdb.mdb-common.limitquery"> + <function>limitQuery</function> + </link>, + <link linkend="package.database.mdb.mdb-common.prepare"> + <function>prepare</function> + </link> + <link linkend="package.database.mdb.mdb-common.execute"> + <function>execute</function> + </link>, + <link linkend="package.database.mdb.mdb-common.getcol"> + <function>getCol</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getall"> + <function>getRow</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getassoc"> + <function>getAssoc</function> + </link> + ,<link linkend="package.database.mdb.mdb-common.getone"> + <function>getOne</function> + </link> + </para> + </refsect1> +</refentry> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-executeMultiple-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/en/package/database/mdb/mdb-common/fetchinto.xml diff -u peardoc/en/package/database/mdb/mdb-common/fetchinto.xml:1.2 peardoc/en/package/database/mdb/mdb-common/fetchinto.xml:1.3 --- peardoc/en/package/database/mdb/mdb-common/fetchinto.xml:1.2 Fri Jun 6 09:48:38 2003 +++ peardoc/en/package/database/mdb/mdb-common/fetchinto.xml Mon Jul 28 08:47:09 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.database.mdb.mdb-common.fetchinto"> <refnamediv> <refname>MDB_Common::fetchInto()</refname> @@ -16,7 +16,7 @@ </optional></parameter> </paramdef> <paramdef>integer - <parameter><optional>$rowNum = &null;</optional></parameter> + <parameter><optional>$rownum = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> @@ -53,9 +53,9 @@ </para> </listitem> </varlistentry> - </variablelist> + </variablelist> </para> - </refsect1> + </refsect1> <refsect1 id="package.database.mdb.mdb-common.fetchinto.return"> &title.returns; <para> Index: peardoc/en/package/database/mdb/mdb-common/executemultiple.xml diff -u peardoc/en/package/database/mdb/mdb-common/executemultiple.xml:1.4 peardoc/en/package/database/mdb/mdb-common/executemultiple.xml:1.5 --- peardoc/en/package/database/mdb/mdb-common/executemultiple.xml:1.4 Sat Jun 28 05:40:08 2003 +++ peardoc/en/package/database/mdb/mdb-common/executemultiple.xml Mon Jul 28 08:47:09 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.database.mdb.mdb-common.executemultiple"> <refnamediv> <refname>MDB_Common::executeMultiple()</refname> @@ -16,7 +16,7 @@ </paramdef> <paramdef> array <parameter> - <optional>$types = NULL</optional> + <optional>$types = &null;</optional> </parameter> </paramdef> <paramdef> @@ -26,7 +26,7 @@ </paramdef> <paramdef> array <parameter> - <optional>$param_types = NULL</optional> + <optional>$param_types = &null;</optional> </parameter> </paramdef> <paramdef>array <parameter>$data</parameter> Index: peardoc/en/package/database/mdb/mdb-common/execute.xml diff -u peardoc/en/package/database/mdb/mdb-common/execute.xml:1.4 peardoc/en/package/database/mdb/mdb-common/execute.xml:1.5 --- peardoc/en/package/database/mdb/mdb-common/execute.xml:1.4 Sat Jun 28 05:40:08 2003 +++ peardoc/en/package/database/mdb/mdb-common/execute.xml Mon Jul 28 08:47:09 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.database.mdb.mdb-common.execute"> <refnamediv> <refname>MDB_Common::execute()</refname> @@ -16,7 +16,7 @@ </paramdef> <paramdef> array <parameter> - <optional>$types = NULL</optional> + <optional>$types = &null;</optional> </parameter> </paramdef> <paramdef> @@ -26,7 +26,7 @@ </paramdef> <paramdef> array <parameter> - <optional>$param_types = NULL</optional> + <optional>$param_types = &null;</optional> </parameter> </paramdef> <paramdef>array <parameter>$data</parameter>
« previous php.pear.doc (#1131) next »