cvs: phpdoc-pl /reference/mysql/functions mysql-select-db.xml
| From: | Adam Major | Date: | Mon, 14 Apr 2008 22:32:34 +0000 |
| Subject: | cvs: phpdoc-pl /reference/mysql/functions mysql-select-db.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1331@lists.php.net to get a copy of this message | ||
adi Mon Apr 14 22:32:34 2008 UTC
Modified files:
/phpdoc-pl/reference/mysql/functions mysql-select-db.xml
Log:
Update to en rev
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/mysql/functions/mysql-select-db.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc-pl/reference/mysql/functions/mysql-select-db.xml
diff -u phpdoc-pl/reference/mysql/functions/mysql-select-db.xml:1.4
phpdoc-pl/reference/mysql/functions/mysql-select-db.xml:1.5
--- phpdoc-pl/reference/mysql/functions/mysql-select-db.xml:1.4 Sat Jun 23 13:29:33 2007
+++ phpdoc-pl/reference/mysql/functions/mysql-select-db.xml Mon Apr 14 22:32:34 2008
@@ -1,46 +1,98 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.2 Maintainer: slawek Status: ready -->
-<!-- $Revision: 1.4 $ -->
- <refentry xml:id="function.mysql-select-db" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>mysql_select_db</refname>
- <refpurpose>Wybiera bazê MySQL</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Opis</title>
- <methodsynopsis>
- <type>bool</type><methodname>mysql_select_db</methodname>
-
<methodparam><type>string</type><parameter>nazwa_bazy</parameter></methodparam>
- <methodparam choice="opt"><type>resource</type><parameter>
- identyfikator_po³±czenia
- </parameter></methodparam>
- </methodsynopsis>
- <para>
- &return.success;
- </para>
- <para>
- <function>mysql_select_db</function> ustawia aktywn± bazê danych
- na serwerze okre¶lonym przez podany identyfikator po³±czenia.
- Je¿eli identyfikator nie zostanie podany, wykorzystane zostanie
- ostatnio otwarte po³±czenie. Je¿eli ¿adne po³±czenie nie jest otwarte,
- funkcja spróbuje je nawi±zaæ wywo³uj±c
- <function>mysql_connect</function> bez argumentów.
- </para>
- <para>
- Kolejne wywo³ania funkcji <function>mysql_query</function> bêd±
- dotyczy³y aktywnej bazy danych.
- </para>
- <para> Patrz tak¿e:
- <function>mysql_connect</function>,
- <function>mysql_pconnect</function> i
- <function>mysql_query</function>.
- </para>
- <para>
- Aby zachowaæ zgodno¶æ z poprzednimi wersjami, mo¿na u¿yæ równie¿
- <function>mysql_selectdb</function>. Jest to jednak niezalecane.
- </para>
- </refsect1>
- </refentry>
+<!-- EN-Revision: 1.12 Maintainer: mroq Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- CREDITS: slawek -->
+<refentry xml:id="function.mysql-select-db" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>mysql_select_db</refname>
+ <refpurpose>Wybiera bazê MySQL</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>bool</type><methodname>mysql_select_db</methodname>
+
<methodparam><type>string</type><parameter>nazwa_bazy</parameter></methodparam>
+ <methodparam
choice="opt"><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Ustawia aktywn± bazê danych na serwerze okre¶lonym przez podany
+ identyfikator po³±czenia. Kolejne wywo³ania funkcji
<function>mysql_query</function>
+ bêd± dotyczy³y aktywnej bazy danych.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>nazwa_bazy</parameter></term>
+ <listitem>
+ <para>
+ Nazwa wybieranej bazy danych.
+ </para>
+ </listitem>
+ </varlistentry>
+ &mysql.linkid.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Przyk³ad u¿ycia <function>mysql_select_db</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$link = mysql_connect('localhost', 'uzytkownik', 'haslo');
+if (!$link) {
+ die('Nie po³±czono : ' . mysql_error());
+}
+
+// Ustaw foo jako aktualn± bazê danych
+$db_selected = mysql_select_db('foo', $link);
+if (!$db_selected) {
+ die ('Nie mo¿na ustawiæ foo : ' . mysql_error());
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <note>
+ <para>
+ &info.deprecated.alias;
+ <function>mysql_selectdb</function>
+ </para>
+ </note>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>mysql_connect</function></member>
+ <member><function>mysql_pconnect</function></member>
+ <member><function>mysql_query</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: