cvs: phpdoc-pl /reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-exec.xml
ovrimos-execute.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml
ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml
ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml

From: Date: Wed, 14 May 2008 07:59:59 +0000
Subject: cvs: phpdoc-pl /reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-exec.xml
ovrimos-execute.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml
ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml
ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1379@lists.php.net to get a copy of this message
joeaccord Wed May 14 07:59:59 2008 UTC Added files: /phpdoc-pl/reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-exec.xml ovrimos-execute.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml Log: new files

http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-close.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-close.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-close.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-close" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_close</refname> <refpurpose>Zamyka po³±czenie z serwerem Ovrimos</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>ovrimos_close</methodname> <methodparam><type>int</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> Zamyka po³±czenie z serwerem Ovrimos, okre¶lone parametrem <parameter>connection</parameter>. W efekcie wszystkie niezatwierdzone transakcje w danej sesji zostan± wycofane. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia z serwerem Ovrimos, zwrócony przez <function>ovrimos_connect</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_connect</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-commit.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-commit.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-commit.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-commit" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_commit</refname> <refpurpose>Potwierdza transakcjê</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_commit</methodname> <methodparam><type>int</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> Potwierdza transakcjê. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia z serwerem Ovrimos, zwrócony przez <function>ovrimos_connect</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_rollback</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-connect.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-connect.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-connect.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-connect" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_connect</refname> <refpurpose>Otwiera po³±czenie z okre¶lon± baz± danych</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_connect</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> <methodparam><type>string</type><parameter>nazwabazy_lub_port</parameter></methodparam> <methodparam><type>string</type><parameter>u¿ytkownik</parameter></methodparam> <methodparam><type>string</type><parameter>has³o</parameter></methodparam> </methodsynopsis> <para> Otwiera po³±czenie do okre¶lonej bazy danych. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>host</parameter></term> <listitem> <para> Nazwa hosta lub adres IP. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>nazwabazy_lub_port</parameter></term> <listitem> <para> Nazwa bazy danych lub numer portu. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>u¿ytkownik</parameter></term> <listitem> <para> Nazwa u¿ytkownika. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>has³o</parameter></term> <listitem> <para> Has³o <parameter>u¿ytkownika</parameter>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca identyfikator po³±czenia (warto¶æ wiêksza od 0) w przypadku powodzenia, lub 0 w przypadku b³êdu. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ovrimos_connect</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("server.example.com", "8001", "admin", "password"); if ($conn != 0) { echo "Po³±czenie zosta³o nawi±zane."; $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { echo "Instrukcja zosta³a wykonana prawid³owo."; ovrimos_result_all($res); ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_close</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-cursor.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-cursor.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-cursor.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-cursor" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_cursor</refname> <refpurpose>Zwraca nazwê kursora</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>ovrimos_cursor</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> </methodsynopsis> <para> Pobiera nazwê kursora. Przydatne podczas wykonywania okre¶lanych zapytañ aktualizacji lub usuwania. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca nazwê jako string, lub &false; w przypadku b³êdu. </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-exec.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-exec.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-exec.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-exec" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_exec</refname> <refpurpose>Wykonuje instrukcjê SQL</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_exec</methodname> <methodparam><type>int</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <para> Wykonuje instrukcjê SQL i zwraca identyfikator wyniku. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia z serwerem Ovrimos, zwrócony przez <function>ovrimos_connect</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>zapytanie</parameter></term> <listitem> <para> Instrukcja SQL. Oczywi¶cie nie mo¿e zawieraæ parametrów. Do przygotowania instrukcji SQL nale¿y u¿ywaæ <function>ovrimos_prepare</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca indentyfikator wyniku jako integer, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_execute</function></member> <member><function>ovrimos_prepare</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-execute.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-execute.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-execute.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-execute" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_execute</refname> <refpurpose>Wykonuje przygotowan± instrukcjê SQL</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_execute</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>tablica_parametrów</parameter></methodparam> </methodsynopsis> <para> Wykonuje przygotowan± instrukcjê SQL. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Identyfikator wyniku Ovrimos, przygotowany za pomoc± <function>ovrimos_prepare</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tablica_parametrów</parameter></term> <listitem> <para> Je¶li przygotowana instrukcja zawiera parametry (znaki zapytania), to powinna zostaæ do funkcji przekazana tablica zawieraj±ca odpowiedni± liczbê warto¶ci dla nich. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_prepare</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-into.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-into.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-into.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.10 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-fetch-into" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_fetch_into</refname> <refpurpose>Pobiera wiersz ze zbioru wyniku</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_fetch_into</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>array</type><parameter role="reference">tablica_wyniku</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>sposób</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>numer_wiersza</parameter></methodparam> </methodsynopsis> <para> Pobiera wiersz z podanego zbioru wyniku do <parameter>tablicy_wyniku</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tablica_wyniku</parameter></term> <listitem> <para> Nale¿y dostarczyæ tablicê przez referencjê. Zostanie ona wype³niona pobranymi warto¶ciami. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>sposób</parameter></term> <listitem> <para> Okre¶la w jaki sposób bêd± pobierane wiersze. Mo¿e przyjmowaæ jedn± z nastêpuj±cych warto¶ci (wielko¶æ liter nie ma znaczenia): <informaltable> <tgroup cols="2"> <thead> <row> <entry>Opcja</entry> <entry>Informacja</entry> </row> </thead> <tbody> <row> <entry><literal>Next</literal></entry> <entry> Nastêpny z bie¿±cej pozycji. To jest warto¶æ domy¶lna. </entry> </row> <row> <entry><literal>Prev</literal></entry> <entry> Poprzedni z bie¿±cej pozycji. </entry> </row> <row> <entry><literal>First</literal></entry> <entry> Pierwszy. </entry> </row> <row> <entry><literal>Last</literal></entry> <entry> Ostatni. </entry> </row> <row> <entry><literal>Absolute</literal></entry> <entry> Wskazany numer, liczony od pocz±tku zbioru. Wymaga podania <parameter>numer_wiersza</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </listitem> </varlistentry> <varlistentry> <term><parameter>numer_wiersza</parameter></term> <listitem> <para> Numer wiersza liczony od 0. Wymagany tylko, gdy <parameter>sposób</parameter> ma warto¶æ <literal>Absolute</literal>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad ovrimos_fetch_into</title> <programlisting role="php"> <![CDATA[ <?php $conn=ovrimos_connect("neptune", "8001", "admin", "password"); if ($conn!=0) { echo "Po³±czenie zosta³o nawi±zane."; $res=ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { echo "Instrukcja zosta³a wykonana prawid³owo."; if (ovrimos_fetch_into($res, &$row)) { list($table_id, $table_name) = $row; echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; if (ovrimos_fetch_into($res, &$row)) { list($table_id, $table_name) = $row; echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; } else { echo "Nastêpny: b³±d\n"; } } else { echo "Pierwszy: b³±d\n"; } ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_fetch_row</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-row.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-row.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-fetch-row.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-fetch-row" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_fetch_row</refname> <refpurpose>Pobiera wiersz ze zbioru wyniku</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_fetch_row</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>sposób</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>numer_wiersza</parameter></methodparam> </methodsynopsis> <para> Pobiera wiersz ze zbioru wyniku. Warto¶ci kolumn powinny byæ odczytywane przez wywo³ania innej funkcji. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>sposób</parameter></term> <listitem> <para> Okre¶la w jaki sposób bêd± pobierane wiersze. Mo¿e przyjmowaæ jedn± z nastêpuj±cych warto¶ci (wielko¶æ liter nie ma znaczenia): <informaltable> <tgroup cols="2"> <thead> <row> <entry>Opcja</entry> <entry>Informacja</entry> </row> </thead> <tbody> <row> <entry><literal>Next</literal></entry> <entry> Nastêpny z bie¿±cej pozycji. To jest warto¶æ domy¶lna. </entry> </row> <row> <entry><literal>Prev</literal></entry> <entry> Poprzedni z bie¿±cej pozycji. </entry> </row> <row> <entry><literal>First</literal></entry> <entry> Pierwszy. </entry> </row> <row> <entry><literal>Last</literal></entry> <entry> Ostatni. </entry> </row> <row> <entry><literal>Absolute</literal></entry> <entry> Wskazany numer, liczony od pocz±tku zbioru. Wymaga podania <parameter>numer_wiersza</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </listitem> </varlistentry> <varlistentry> <term><parameter>numer_wiersza</parameter></term> <listitem> <para> Numer wiersza liczony od 0. Wymagany tylko, gdy <parameter>sposób</parameter> ma warto¶æ <literal>Absolute</literal>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad ovrimos_fetch_row</title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("remote.host", "8001", "admin", "password"); if ($conn != 0) { echo "Po³±czenie zosta³o nawi±zane."; $res=ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { echo "Instrukcja zosta³a wykonana prawid³owo."; if (ovrimos_fetch_row($res, "First")) { $table_id = ovrimos_result($res, 1); $table_name = ovrimos_result($res, 2); echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; if (ovrimos_fetch_row($res, "Next")) { $table_id = ovrimos_result($res, "table_id"); $table_name = ovrimos_result($res, "table_name"); echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; } else { echo "Nastêpny: b³±d\n"; } } else { echo "Pierwszy: b³±d\n"; } ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> Pobranie wiersza i wy¶wietlenie wyniku. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_fetch_into</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-field-len.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-field-len.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-field-len.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-field-len" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_field_len</refname> <refpurpose>Zwraca d³ugo¶æ kolumny</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_field_len</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>int</type><parameter>numer_pola</parameter></methodparam> </methodsynopsis> <para> Zwraca d³ugo¶æ okre¶lonej kolumny. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>numer_pola</parameter></term> <listitem> <para> Numer pola. Numeracja zaczyna siê od 1. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca d³ugo¶æ jako integer, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_field_name</function></member> <member><function>ovrimos_field_num</function></member> <member><function>ovrimos_field_type</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-field-name.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-field-name.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-field-name.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-field-name" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_field_name</refname> <refpurpose>Zwraca nazwê kolumny</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>ovrimos_field_name</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>int</type><parameter>numer_pola</parameter></methodparam> </methodsynopsis> <para> Zwraca nazwê kolumny dla okre¶lonego numeru pola. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>numer_pola</parameter></term> <listitem> <para> Numer pola. Numeracja zaczyna siê od 1. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca nazwê pola jako string, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_field_len</function></member> <member><function>ovrimos_field_num</function></member> <member><function>ovrimos_field_type</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-field-num.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-field-num.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-field-num.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-field-num" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_field_num</refname> <refpurpose>Zwraca numer kolumny</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_field_num</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa_pola</parameter></methodparam> </methodsynopsis> <para> Zwraca numer okre¶lonej kolumny. Numeracja zaczyna siê od 1. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>nazwa_pola</parameter></term> <listitem> <para> Nazwa pola. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca indeks rozpoczynaj±cy siê od 1, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_field_len</function></member> <member><function>ovrimos_field_name</function></member> <member><function>ovrimos_field_type</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-field-type.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-field-type.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-field-type.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-field-type" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_field_type</refname> <refpurpose>Zwraca typ kolumny</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_field_type</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>int</type><parameter>numer_pola</parameter></methodparam> </methodsynopsis> <para> Zwraca typ kolumny. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>numer_pola</parameter></term> <listitem> <para> Indeks zaczynaj±cy siê od 1. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca typ pola jako integer, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_field_len</function></member> <member><function>ovrimos_field_name</function></member> <member><function>ovrimos_field_num</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-free-result.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-free-result.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-free-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-free-result" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_free_result</refname> <refpurpose>Zwalnia pamiêæ zajmowan± przez okre¶lony wynik</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_free_result</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> </methodsynopsis> <para> Zwalnia pamiêæ zajmowan± przez okre¶lony wynik. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca &true;. </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-longreadlen.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-longreadlen.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-longreadlen.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-longreadlen" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_longreadlen</refname> <refpurpose>Okre¶la ile bajtów zostanie odczytanych z du¿ych typów danych</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_longreadlen</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>int</type><parameter>d³ugo¶æ</parameter></methodparam> </methodsynopsis> <para> Okre¶la ile bajtów zostanie odczytanych z du¿ych typów danych (long varchar i long varbinary). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>d³ugo¶æ</parameter></term> <listitem> <para> Liczba bajtów do odczytu. Domy¶lnie zero. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca &true;. </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-num-fields.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-num-fields.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-num-fields.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-num-fields" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_num_fields</refname> <refpurpose>Zwraca liczbê kolumn</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_num_fields</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> </methodsynopsis> <para> Zwraca liczbê kolumn w okre¶lonym zbiorze wyniku. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca liczbê kolumn jako integer, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_num_rows</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-num-rows.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-num-rows.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-num-rows.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-num-rows" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_num_rows</refname> <refpurpose>Pobiera liczbê wierszy u¿ytych przez operacje aktualizacji</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_num_rows</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> </methodsynopsis> <para> Pobiera liczbê zaktualizowanych wierszy. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca liczbê wierszy jako integer, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_num_fields</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-prepare.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-prepare.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-prepare.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.7 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-prepare" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_prepare</refname> <refpurpose>Przygotowuje instrukcjê SQL</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_prepare</methodname> <methodparam><type>int</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <para> Przygotowuje instrukcjê SQL. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia z serwerem Ovrimos, zwrócony przez <function>ovrimos_connect</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>zapytanie</parameter></term> <listitem> <para> Instrukcja SQL. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca identyfikator wyniku, lub &false; w przypadku b³êdu. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ovrimos_prepare</function></title> <programlisting role="php"> <![CDATA[ <?php $conn=ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn!=0) { echo "Po³±czenie zosta³o nawi±zane."; // Przygotowanie instrukcji $res=ovrimos_prepare($conn, "select table_id, table_name from sys.tables where table_id=1"); if ($res != 0) { echo "Przygotowanie instrukcji powiod³o siê"; // Wykonanie przygotowanej instrukcji if (ovrimos_execute($res)) { echo "Wykonanie instrukcji powiod³o siê\n"; ovrimos_result_all($res); } else { echo "Wykonanie instrukcji nie powiod³o siê"; } ovrimos_free_result($res); } else { echo "Przygotowanie instrukcji nie powiod³o siê\n"; } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-result-all.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-result-all.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-result-all.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.9 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-result-all" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_result_all</refname> <refpurpose>Wy¶wietla ca³y zbiór wyniku w postaci tabeli HTML</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ovrimos_result_all</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>format</parameter></methodparam> </methodsynopsis> <para> Wy¶wietla ca³y zbiór wyniku w postaci tabeli HTML. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>format</parameter></term> <listitem> <para> Opcjonalne atrybuty HTML u¿ywane podczas generowania tabeli. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca liczbê wierszy w wygenerowanej tabeli. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> Wykonanie instrukcji SQL i wy¶wietlenie wyniku w postaci tabeli HTML. <example> <title>Przygotowanie instrukcji, wykonanie, i wy¶wietlenie wyniku</title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn != 0) { echo "Po³±czenie zosta³o nawi±zane."; $res = ovrimos_prepare($conn, "select table_id, table_name from sys.tables where table_id = 7"); if ($res != 0) { echo "Instrukcja zosta³a przygotowana prawid³owo"; if (ovrimos_execute($res, array(3))) { echo "Wykonanie instrukcji powiod³o siê\n"; ovrimos_result_all($res); } else { echo "Wykonanie instrukcji nie powiod³o siê"; } ovrimos_free_result($res); } else { echo "Przygotowanie instrukcji nie powiod³o siê\n"; } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </para> <para> <example> <title>Przyk³ad <function>ovrimos_result_all</function> z metadanymi</title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn != 0) { echo "Po³±czenie zosta³o nawi±zane."; $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables where table_id = 1"); if ($res != 0) { echo "Instrukcja zosta³a wykonana prawid³owo; cursor=" . ovrimos_cursor($res) . "\n"; $colnb = ovrimos_num_fields($res); echo "Liczba kolumn=" . $colnb . "\n"; for ($i=1; $i <= $colnb; $i++) { $name = ovrimos_field_name($res, $i); $type = ovrimos_field_type($res, $i); $len = ovrimos_field_len($res, $i); echo "Kolumna " . $i . " nazwa=" . $name . " typ=" . $type . " d³ugo¶æ=" . $len . "\n"; } ovrimos_result_all($res); ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-result.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-result.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-result" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_result</refname> <refpurpose>Odczytuje warto¶æ kolumny</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>ovrimos_result</methodname> <methodparam><type>int</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam><type>mixed</type><parameter>pole</parameter></methodparam> </methodsynopsis> <para> Odczytuje warto¶æ kolumny okre¶lon± przez <parameter>pole</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_wyniku</parameter></term> <listitem> <para> Indetyfikator wyniku zwrócony przez <function>ovrimos_execute</function> lub <function>ovrimos_exec</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>pole</parameter></term> <listitem> <para> Nazwa kolumny jako string lub indeks zaczynaj±cy siê od 1. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca kolumnê jako string, lub &false; w przypadku b³êdu. </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ovrimos/functions/ovrimos-rollback.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ovrimos/functions/ovrimos-rollback.xml +++ phpdoc-pl/reference/ovrimos/functions/ovrimos-rollback.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ovrimos-rollback" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ovrimos_rollback</refname> <refpurpose>Wycofuje transakcjê</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ovrimos_rollback</methodname> <methodparam><type>int</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> Wycofuje transakcjê. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia z serwerem Ovrimos, zwrócony przez <function>ovrimos_connect</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ovrimos_commit</function></member> </simplelist> </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-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil 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 -->
« previous php.doc.pl (#1379) next »