cvs: peardoc /en/package/database/db/db-common query.xml
| From: | Dennis Sterzenbach | Date: | Thu, 09 Oct 2003 12:46:01 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common query.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1589@lists.php.net to get a copy of this message | ||
darknoise Thu Oct 9 08:46:01 2003 EDT
Modified files:
/peardoc/en/package/database/db/db-common query.xml
Log:
fixed some typos
Index: peardoc/en/package/database/db/db-common/query.xml diff -u peardoc/en/package/database/db/db-common/query.xml:1.6 peardoc/en/package/database/db/db-common/query.xml:1.7 --- peardoc/en/package/database/db/db-common/query.xml:1.6 Wed Aug 13 12:01:01 2003 +++ peardoc/en/package/database/db/db-common/query.xml Thu Oct 9 08:46:01 2003 @@ -1,192 +1,192 @@ -<!-- $Revision: 1.6 $ --> -<refentry id="package.database.db.db-common.query"> - <refnamediv> - <refname>DB_Common::query()</refname> - <refpurpose>send a query to the database</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'DB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>&query</function></funcdef> - <paramdef>string <parameter>$query</parameter></paramdef> - <paramdef> - array <parameter><optional>$params</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.db.db-common.query.desc"> - &title.desc; - <para> - Executes a SQL query - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.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.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - the data to be added to - the query - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - a new - &class.db-result;/&constant.db-ok; or a &class.db-error;, if fail - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.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>DB_ERROR_INVALID</constant></entry> - <entry> - &null; - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry><constant>DB_ERROR_NEED_MORE_DATA</constant></entry> - <entry> - &null; - </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.db.db-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>DB_ERROR_NO_DB_SELECTED</constant></entry> - <entry> - &null; - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.db.intro-dsn">DSN</link> - in <link linkend="package.database.db.db.connect"> - <function>connect</function></link>. - </entry> - </row> - <row> - <entry>every other error code</entry> - <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.db.db-common.query.note"> - &title.note; - ¬e.notstatic; - <note> - <para> - <function>query</function> can be used instead of - <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function></link> and - <link linkend="package.database.db.db-common.execute"> - <function>execute</function></link>, if you - set the <parameter>$params</parameter> parameter - and your query uses wild cards. - </para> - </note> - <para> - See <link linkend="package.database.db.intro-execute"> - Introduction - Execute</link> for general using and an example. - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.see"> - &title.see; - <para> - <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function> - </link>, - <link linkend="package.database.db.db-common.execute"> - <function>execute</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.7 $ --> +<refentry id="package.database.db.db-common.query"> + <refnamediv> + <refname>DB_Common::query()</refname> + <refpurpose>send a query to the database</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'DB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>&query</function></funcdef> + <paramdef>string <parameter>$query</parameter></paramdef> + <paramdef> + array <parameter><optional>$params</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.db.db-common.query.desc"> + &title.desc; + <para> + Executes a SQL query + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.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.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + the data to be added to + the query + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - a new + &class.db-result;/&constant.db-ok; or a &class.db-error;, if fail + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.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>DB_ERROR_INVALID</constant></entry> + <entry> + &null; + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statement using wildcards. + </entry> + </row> + <row> + <entry><constant>DB_ERROR_NEED_MORE_DATA</constant></entry> + <entry> + &null; + </entry> + <entry> + Too few data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wildcards given in the SQL statement + <link linkend="package.database.db.db-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>DB_ERROR_NO_DB_SELECTED</constant></entry> + <entry> + &null; + </entry> + <entry> + No database was chosen. + </entry> + <entry> + Check the <link linkend="package.database.db.intro-dsn">DSN</link> + in <link linkend="package.database.db.db.connect"> + <function>connect</function></link>. + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry></entry> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of the + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statement. I.e. using LIMIT in a SQL-Statement + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.note"> + &title.note; + ¬e.notstatic; + <note> + <para> + <function>query</function> can be used instead of + <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function></link> and + <link linkend="package.database.db.db-common.execute"> + <function>execute</function></link>, if you + set the <parameter>$params</parameter> parameter + and your query uses wildcards. + </para> + </note> + <para> + See <link linkend="package.database.db.intro-execute"> + Introduction - Execute</link> for general using and an example. + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.see"> + &title.see; + <para> + <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function> + </link>, + <link linkend="package.database.db.db-common.execute"> + <function>execute</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/db/db-common/query.xml diff -u peardoc/en/package/database/db/db-common/query.xml:1.6 peardoc/en/package/database/db/db-common/query.xml:1.7 --- peardoc/en/package/database/db/db-common/query.xml:1.6 Wed Aug 13 12:01:01 2003 +++ peardoc/en/package/database/db/db-common/query.xml Thu Oct 9 08:46:01 2003 @@ -1,192 +1,192 @@ -<!-- $Revision: 1.6 $ --> -<refentry id="package.database.db.db-common.query"> - <refnamediv> - <refname>DB_Common::query()</refname> - <refpurpose>send a query to the database</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'DB.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>&query</function></funcdef> - <paramdef>string <parameter>$query</parameter></paramdef> - <paramdef> - array <parameter><optional>$params</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.database.db.db-common.query.desc"> - &title.desc; - <para> - Executes a SQL query - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.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.array; - <parameter>$params</parameter> - </term> - <listitem> - <para> - the data to be added to - the query - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - a new - &class.db-result;/&constant.db-ok; or a &class.db-error;, if fail - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.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>DB_ERROR_INVALID</constant></entry> - <entry> - &null; - </entry> - <entry> - SQL statment for preparing is not valid. - </entry> - <entry> - See the <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function> documentation</link>, - if you want to use a SQL statemt using wildcards. - </entry> - </row> - <row> - <entry><constant>DB_ERROR_NEED_MORE_DATA</constant></entry> - <entry> - &null; - </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.db.db-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>DB_ERROR_NO_DB_SELECTED</constant></entry> - <entry> - &null; - </entry> - <entry> - No database was choosen. - </entry> - <entry> - Check the <link linkend="package.database.db.intro-dsn">DSN</link> - in <link linkend="package.database.db.db.connect"> - <function>connect</function></link>. - </entry> - </row> - <row> - <entry>every other error code</entry> - <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.db.db-common.query.note"> - &title.note; - ¬e.notstatic; - <note> - <para> - <function>query</function> can be used instead of - <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function></link> and - <link linkend="package.database.db.db-common.execute"> - <function>execute</function></link>, if you - set the <parameter>$params</parameter> parameter - and your query uses wild cards. - </para> - </note> - <para> - See <link linkend="package.database.db.intro-execute"> - Introduction - Execute</link> for general using and an example. - </para> - </refsect1> - <refsect1 id="package.database.db.db-common.query.see"> - &title.see; - <para> - <link linkend="package.database.db.db-common.prepare"> - <function>prepare</function> - </link>, - <link linkend="package.database.db.db-common.execute"> - <function>execute</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.7 $ --> +<refentry id="package.database.db.db-common.query"> + <refnamediv> + <refname>DB_Common::query()</refname> + <refpurpose>send a query to the database</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'DB.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>&query</function></funcdef> + <paramdef>string <parameter>$query</parameter></paramdef> + <paramdef> + array <parameter><optional>$params</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.database.db.db-common.query.desc"> + &title.desc; + <para> + Executes a SQL query + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.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.array; + <parameter>$params</parameter> + </term> + <listitem> + <para> + the data to be added to + the query + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - a new + &class.db-result;/&constant.db-ok; or a &class.db-error;, if fail + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.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>DB_ERROR_INVALID</constant></entry> + <entry> + &null; + </entry> + <entry> + SQL statment for preparing is not valid. + </entry> + <entry> + See the <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function> documentation</link>, + if you want to use a SQL statement using wildcards. + </entry> + </row> + <row> + <entry><constant>DB_ERROR_NEED_MORE_DATA</constant></entry> + <entry> + &null; + </entry> + <entry> + Too few data for filling the prepared SQL statment. + </entry> + <entry> + Check the number of wildcards given in the SQL statement + <link linkend="package.database.db.db-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>DB_ERROR_NO_DB_SELECTED</constant></entry> + <entry> + &null; + </entry> + <entry> + No database was chosen. + </entry> + <entry> + Check the <link linkend="package.database.db.intro-dsn">DSN</link> + in <link linkend="package.database.db.db.connect"> + <function>connect</function></link>. + </entry> + </row> + <row> + <entry>every other error code</entry> + <entry></entry> + <entry> + Database specific error + </entry> + <entry> + Check the database related section of the + <ulink url="www.php.net/manual/">PHP-Manual</ulink> + to detect the reason for this error. In the most cases + a misformed SQL statement. I.e. using LIMIT in a SQL-Statement + for an Oracle database. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.note"> + &title.note; + ¬e.notstatic; + <note> + <para> + <function>query</function> can be used instead of + <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function></link> and + <link linkend="package.database.db.db-common.execute"> + <function>execute</function></link>, if you + set the <parameter>$params</parameter> parameter + and your query uses wildcards. + </para> + </note> + <para> + See <link linkend="package.database.db.intro-execute"> + Introduction - Execute</link> for general using and an example. + </para> + </refsect1> + <refsect1 id="package.database.db.db-common.query.see"> + &title.see; + <para> + <link linkend="package.database.db.db-common.prepare"> + <function>prepare</function> + </link>, + <link linkend="package.database.db.db-common.execute"> + <function>execute</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 +-->