cvs: phpdoc-pl /reference/pgsql/functions pg-fetch-result.xml

From: Date: Sun, 04 May 2008 19:59:51 +0000
Subject: cvs: phpdoc-pl /reference/pgsql/functions pg-fetch-result.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1370@lists.php.net to get a copy of this message
adi Sun May 4 19:59:51 2008 UTC Modified files: /phpdoc-pl/reference/pgsql/functions pg-fetch-result.xml Log: Update http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml Sun May 4 19:59:51 2008 @@ -1,71 +1,146 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.3 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> - <refentry xml:id="function.pg-fetch-result" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_fetch_result</refname> - <refpurpose>Pobiera dane z wyniku</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>mixed</type><methodname>pg_fetch_result</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>row</parameter></methodparam> - <methodparam><type>mixed</type><parameter>field</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_fetch_result</function> zwraca dane z wyniku - <parameter>result</parameter> zwróconego przez - <function>pg_query</function>. <parameter>row</parameter> - jest numerem wiersza. <parameter>field</parameter> jest nazw± kolumny (³añcuch) - lub jej indeksem(liczba). Parametry <parameter>row</parameter> - i <parameter>field</parameter> wskazuj± któr± komórkê tabeli wyniku - nale¿y zwróciæ. Wiersze s± numerowane od 0. Zamiast nazwy kolumny mo¿na - u¿yæ numerycznego indeksu kolumny. Kolumny s± numerowane od 0. - </para> - <para> - PostgreSQL ma wiele wbudowanych typów danych, ale tylko niektóre - s± tu wspomagane bezpo¶rednio. Dane typów takich jak - <type>integer</type>, <type>boolean</type> i void - <!-- FIXME: is that still true? PHP supports boolean&null now... --> - <!-- Yes, supporting boolean&null breaks scripts. pg_fetch_array() - can be used instead. I might take of this issue with additional - ini directive. yohgaki@php.net --> - s± zwracane jako <type>integer</type>. Dane typów takich jak - <type>float</type>, i typy rzeczywiste s± zwracane jako <type>float</type>. - Wszystkie pozosta³e typy, w³±czaj±c tablice, s± zwracane jako - ³añcuchy znaków, sformatowane tak jak mo¿esz to zobaczyæ przy u¿yciu - programu <command>psql</command>. - </para> - <!-- Dodane przez t³umacza dla ujednolicenia. 2002-05-19 Jaros³aw Tabor jarek@srv.pl --> - <note> - <para> - Ta funkcja by³a nazwana <literal>pg_result()</literal>. - </para> - </note> - <!-- Koniec --> - </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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.13 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-fetch-result" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_fetch_result</refname> + <refpurpose>Pobiera dane z wyniku</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>pg_fetch_result</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam><type>int</type><parameter>wiersz</parameter></methodparam> + <methodparam><type>mixed</type><parameter>kolumna</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>pg_fetch_result</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam><type>mixed</type><parameter>kolumna</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_fetch_result</function> zwraca warto¶æ okre¶lonego + wiersza i pola (kolumny) w identyfikatorze wyniku PostgreSQL. + </para> + <note> + <para> + Funkcja ta nazywana by³a wcze¶niej <function>pg_result</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>wynik</parameter></term> + <listitem> + <para> + Identyfikator wyniku zapytania, zwrócony przez <function>pg_query</function>, + <function>pg_query_params</function> lub <function>pg_execute</function> + (miêdzy innymi). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>wiersz</parameter></term> + <listitem> + <para> + Numer wiersza wyniku do zwrócenia. Wiersze s± numerowane od zera w górê. Je¶li nie podano, + zwracany jest kolejny wiersz. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>kolumna</parameter></term> + <listitem> + <para> + £añcuch (ang. <type>string</type>) reprezentuj±cy nazwê pola (kolumny) do pobrania, w innym + wypadku, kolumnê do pobrania reprezentuje jej numer (<type>int</type>). Pola s± + numerowane od zera w górê. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Typ boolean jest zwracany jako &quot;t&quot; lub &quot;f&quot; (true lub false z j. ang.). Wszystkie + inne typy, w³±czaj±c tablice s± zwracane jako ³añcuchy sformatowane + domy¶lnie, do takiego samego typu PostgreSQL, jaki powiniene¶ zobaczyæ w programie + <command>psql</command>. Warto¶ci <literal>NULL</literal> z bazy danych + s± zwracane jako &null;. + </para> + <para> + &false; jest zwracane je¶li <parameter>wiersz</parameter> przekracza liczbê + wszystkich dostêpnych wierszy, lub w przypadku ka¿dego innego b³êdu. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_fetch_result</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php +$baza_danych = pg_connect("dbname=uzytkownicy uzytkownik=ja") || die(); + +$id = pg_query($baza_danych, "SELECT 1 UNION ALL SELECT 2"); + +$war = pg_fetch_result($id, 1, 0); + +echo "Pierwsze pole w drugim wierszu to: ", $war, "\n"; +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Pierwsze pole w drugim wierszu to: 2 +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_query</function></member> + <member><function>pg_fetch_array</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 (#1370) next »