cvs: phpdoc-pl /reference/mysql/functions mysql-field-table.xml

From: Date: Sun, 13 Apr 2008 16:37:08 +0000
Subject: cvs: phpdoc-pl /reference/mysql/functions mysql-field-table.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1328@lists.php.net to get a copy of this message
adi Sun Apr 13 16:37:08 2008 UTC Modified files: /phpdoc-pl/reference/mysql/functions mysql-field-table.xml Log: Update to EN http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/mysql/functions/mysql-field-table.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/mysql/functions/mysql-field-table.xml diff -u phpdoc-pl/reference/mysql/functions/mysql-field-table.xml:1.4 phpdoc-pl/reference/mysql/functions/mysql-field-table.xml:1.5 --- phpdoc-pl/reference/mysql/functions/mysql-field-table.xml:1.4 Sat Jun 23 13:29:33 2007 +++ phpdoc-pl/reference/mysql/functions/mysql-field-table.xml Sun Apr 13 16:37:08 2008 @@ -1,29 +1,90 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: slawek Status: ready --> -<!-- $Revision: 1.4 $ --> - <refentry xml:id="function.mysql-field-table" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>mysql_field_table</refname> - <refpurpose> - Pobiera nazwê tabeli w której znajduje siê dane pole - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>mysql_field_table</methodname> - <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> - <methodparam><type>int</type><parameter>ofset_pola</parameter></methodparam> - </methodsynopsis> - <para> - Pobiera nazwê tabeli w której znajduje siê dane pole - </para> - <para> - Aby zachowaæ zgodno¶æ z poprzednimi wersjami, mo¿na u¿yæ równie¿ - <function>mysql_fieldtable</function>. Jest to jednak niezalecane. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.9 Maintainer: mroq Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- CREDITS: slawek --> +<refentry xml:id="function.mysql-field-table" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>mysql_field_table</refname> + <refpurpose>Pobiera nazwê tabeli w której znajduje siê dane pole</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>mysql_field_table</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam><type>int</type><parameter>ofset_pola</parameter></methodparam> + </methodsynopsis> + <para> + Zwraca nazwê tabeli w której znajduje siê dane pole. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &mysql.result.description; + &mysql.field-offset.req.description; + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Zwraca nazwê tabeli w przypadku powodzenia. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Przyk³ad u¿ycia <function>mysql_field_table</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$query = "SELECT konto.*, panstwo.* FROM konto, panstwo WHERE konto.nazwa = 'Polska' AND konto.panstwo_id = panstwo.id"; + +// Pobiera wynik z bazy danych +$result = mysql_query($query); + +// Wy¶wietla nazwê tablicy, a nastêpnie nazwê pola +for ($i = 0; $i < mysql_num_fields($result); ++$i) { + $table = mysql_field_table($result, $i); + $field = mysql_field_name($result, $i); + + echo "$table: $field\n"; +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + &info.deprecated.alias; + <function>mysql_fieldtable</function> + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mysql_list_tables</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.pl (#1328) next »