costra Tue May 28 18:24:05 2002 EDT Modified files: /phpdoc-cs/reference/mysql/functions mysql-fetch-field.xml mysql-field-flags.xml mysql-field-len.xml mysql-field-name.xml mysql-field-seek.xml mysql-field-table.xml mysql-field-type.xml mysql-free-result.xml mysql-get-client-info.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-insert-id.xml Log: As far as I can gather translation to Czech continues great.
Index: phpdoc-cs/reference/mysql/functions/mysql-fetch-field.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-fetch-field.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-fetch-field.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-fetch-field.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-fetch-field.xml Tue May 28 18:24:04 +2002 @@ -22,7 +22,7 @@ Vrátí objekt obsahující informace o sloupci z výsledku. </para> <para> - <function>mysql_fetch_field</function> můeže použít v případě, že + <function>mysql_fetch_field</function> můžete použít v případě, že potřebujete získat informace o sloupci z určitého výsledku. Není-li specifikován název sloupce, funkce načte informace o prvním následujícím ještě nenačteném sloupci.</para> Index: phpdoc-cs/reference/mysql/functions/mysql-field-flags.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-flags.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-flags.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-flags.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-flags.xml Tue May 28 18:24:04 +2002 @@ -5,7 +5,7 @@ <refnamediv> <refname>mysql_field_flags</refname> <refpurpose> - Načte doplnující informace o položce + Načte příznaky sloupce tabulky </refpurpose> </refnamediv> <refsect1> @@ -14,26 +14,24 @@ <type>string</type><methodname>mysql_field_flags</methodname> <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> - - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + + <methodparam><type>int</type><parameter>nazev_sloupce</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_field_flags</function> returns the field flags of - the specified field. The flags are reported as a single word - per flag separated by a single space, so that you can split the - returned value using <function>explode</function>. - </para> - <para>The following flags are reported, if your version of MySQL - is current enough to support them: "not_null", "primary_key", - "unique_key", "multiple_key", "blob", "unsigned", "zerofill", - "binary", "enum", "auto_increment", "timestamp". + <function>mysql_field_flags</function> vrací další informace o +uvedeném sloupci tabulky. Každý příznak je reprezentován jedním slovem a jsou od +sebe odděleny mezerou tak, že lze výstup snadno rozdělit pomocí funkce +<function>explode</function>. </para> + <para>Vrácené příznaky mohou být následující (jestliže je vaše verze MySQL +podporuje): "not_null", "primary_key", "unique_key", "multiple_key", "blob", +"unsigned", "zerofill", "binary", "enum", "auto_increment", "timestamp". </para> <para> - For downward compatibility <function>mysql_fieldflags</function> - can also be used. This is deprecated, however. - </para> - </refsect1> - </refentry> + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_fieldflags</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. +</para> +</refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: Index: phpdoc-cs/reference/mysql/functions/mysql-field-len.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-len.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-len.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-len.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-len.xml Tue May 28 18:24:04 +2002 @@ -5,25 +5,26 @@ <refnamediv> <refname>mysql_field_len</refname> <refpurpose> - Vrátí délku položky + Vrátí délku sloupce tabulky </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>int</type><methodname>mysql_field_len</methodname> - + <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> - - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + + <methodparam><type>int</type><parameter>jmeno_sloupce</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_field_len</function> returns the length of the - specified field. + <function>mysql_field_len</function> Vrací délku uvedeného sloupce +v tabulce. </para> <para> - For downward compatibility <function>mysql_fieldlen</function> - can also be used. This is deprecated, however. + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_fieldlen</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-field-name.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-name.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-name.xml Tue May 28 18:24:04 +2002 @@ -5,65 +5,65 @@ <refnamediv> <refname>mysql_field_name</refname> <refpurpose> - Načte název položky + Načte název sloupce tabulky </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>mysql_field_name</methodname> - + <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> - - <methodparam><type>int</type><parameter>field_index</parameter></methodparam> + + <methodparam><type>int</type><parameter>číslo_sloupce</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_field_name</function> returns the name of the - specified field index. <parameter>výsledek</parameter> must be a - valid result identifier and <parameter>field_index</parameter> is - the numerical offset of the field. - </para> + <function>mysql_field_name</function> vrací jméno uvedeného sloupce v + tabulce. <parameter>výsledek</parameter> musí být platný identifikátor + spojení a <parameter>číslo_sloupce</parameter> je pořadí sloupce v +tabulce. </para> <note> <para> - <parameter>field_index</parameter> starts at 0. + <parameter>číslo_sloupce</parameter> začíná nulou. </para> <para> - e.g. The index of the third field would actually be 2, the index - of the fourth field would be 3 and so on. + např. pořadí třetího sloupce tabulky bude číslo 2, čtvrtý sloupec v tabulce +má číslo 3, atd. </para> </note> <para> <example> - <title><function>mysql_field_name</function> example</title> + <title><function>mysql_field_name</function> příklad</title> <programlisting role="php"> <![CDATA[ -// The users table consists of three fields: -// user_id -// username -// password. -$link = mysql_connect('localhost', $user, "secret"); -mysql_select_db($dbname, $link) - or die("Could not set $dbname"); -$res = mysql_query("select * from users", $link); +// Tabulka "uzivatele" má následující tři sloupce:: +// uziv_id +// jmeno +// heslo. +$link = mysql_connect('localhost', $uzivatel, "tajne"); +mysql_select_db($dbjmeno, $link) + or die("Nelze se připojit k databázi $dbjmeno"); +$res = mysql_query("select * from uzivatele", $link); echo mysql_field_name($res, 0) . "\n"; echo mysql_field_name($res, 2); ]]> </programlisting> <para> - The above example would produce the following output: + Předchozí příklad by zobrazil následující výstup: <screen> <![CDATA[ -user_id -password +uziv_id +heslo ]]> </screen> </para> </example> </para> <para> - For downwards compatibility <function>mysql_fieldname</function> - can also be used. This is deprecated, however. + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_fieldname</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-field-seek.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-seek.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-seek.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-seek.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-seek.xml Tue May 28 18:24:04 +2002 @@ -5,25 +5,24 @@ <refnamediv> <refname>mysql_field_seek</refname> <refpurpose> - Nastaví ukazatel na zadaný záznam + Nastaví ukazatel na zadaný sloupec </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>int</type><methodname>mysql_field_seek</methodname> - + <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> - + <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> </methodsynopsis> <para> - Seeks to the specified field offset. If the next call to - <function>mysql_fetch_field</function> doesn't include a field - offset, the field offset specified in - <function>mysql_field_seek</function> will be returned. - </para> - <para> + Nastaví ukazatel na určený sloupec. Pokud následující volání funkce + <function>mysql_fetch_field</function> nemá zadán druhý parametr (název +sloupce), vrátí informace o sloupci určeném právě v +<function>mysql_field_seek</function>. </para> +<para> Viz. také: <function>mysql_fetch_field</function>. </para> </refsect1> Index: phpdoc-cs/reference/mysql/functions/mysql-field-table.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-table.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-table.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-table.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-table.xml Tue May 28 18:24:04 +2002 @@ -5,25 +5,25 @@ <refnamediv> <refname>mysql_field_table</refname> <refpurpose> - Zjistí jméno tabulky, z níž je zadaná položka + Zjistí jméno tabulky, v níž se nachází uvedený sloupec </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>mysql_field_table</methodname> - + <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> - - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + + <methodparam><type>int</type><parameter>název_sloupce</parameter></methodparam> </methodsynopsis> <para> - Returns the name of the table that the specifed field is - in. - </para> + Vrátí jméno tabulky, která obsahuje uvedený sloupec. + </para> <para> - For downward compatibility <function>mysql_fieldtable</function> - can also be used. This is deprecated, however. + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_fieldtable</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-field-type.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-field-type.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-field-type.xml Tue May 28 18:24:04 +2002 @@ -5,28 +5,26 @@ <refnamediv> <refname>mysql_field_type</refname> <refpurpose> - Zjistí typ položky výsledku + Zjistí typ sloupce </refpurpose> </refnamediv> <refsect1> <title>Popis</title> <methodsynopsis> <type>string</type><methodname>mysql_field_type</methodname> - + <methodparam><type>iresource</type><parameter>výsledek</parameter></methodparam > - - <methodparam><type>int</type><parameter>field_offset</parameter></methodparam> + + <methodparam><type>int</type><parameter>název_sloupce</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_field_type</function> is similar to the - <function>mysql_field_name</function> function. The arguments are - identical, but the field type is returned instead. The field type - will be one of "int", "real", "string", "blob", and others as - detailed in the <ulink url="&url.mysql.docs;">MySQL - documentation</ulink>. - <example> - <title>MySQL field types</title> + <function>mysql_field_type</function> je podobná funkci + <function>mysql_field_name</function>. Argumenty jsou totožné, pouze +namísto jméno vrací typ sloupce. Sloupec může být typu: "int", "real", "string", +"blob", a další detailně popsané v <ulink url="&url.mysql.docs;">MySQL +dokumentaci</ulink>. <example> + <title>MySQL typy sloupců</title> <programlisting role="php"> <![CDATA[ <?php @@ -38,9 +36,9 @@ $rows = mysql_num_rows($result); $i = 0; $table = mysql_field_table($result, $i); -echo "Your '".$table."' table has ".$fields." fields and ".$rows." records +echo "Tvá tabulka '".$table."' má ".$fields." sloupců a ".$rows." záznamů <BR>"; -echo "The table has the following fields <BR>"; +echo "Tabulka má následující sloupce: <BR>"; while ($i < $fields) { $type = mysql_field_type($result, $i); $name = mysql_field_name($result, $i); @@ -57,8 +55,9 @@ </example> </para> <para> - For downward compatibility <function>mysql_fieldtype</function> - can also be used. This is deprecated, however. + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_fieldtype</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-free-result.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-free-result.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-free-result.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-free-result.xml:1.1 Sun Apr 14 19:47:08 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-free-result.xml Tue May 28 18:24:04 +2002 @@ -14,22 +14,20 @@ <methodparam><type>resource</type><parameter>výsledek</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_free_result</function> will free all memory - associated with the result identifier <parameter>výsledek</parameter>. + <function>mysql_free_result</function> uvolní pamět obsazenou výsledkem + definovaným identifikátorem spojení <parameter>výsledek</parameter>. </para> <para> - <function>mysql_free_result</function> only needs to be called if - you are concerned about how much memory is being used for queries - that return large result sets. All associated result memory is - automatically freed at the end of the script's execution. - <!-- TODO and as of PHP4 before, see freeing resources --> - </para> - <para> - &return.success; - </para> + <function>mysql_free_result</function> je vhodné použivat pouze v případě, +že vám záleží na tom, jak moc paměti je v průběhu skriptu použíto pro vykonaný +dotaz a když výsledek dotazu je příliš velký. Všechna pamět obsazená výsledky +spojení bude jinak automaticky ulovněna s koncem běhu skriptu. +<!-- TODO and as of PHP4 before, see freeing resources --> </para> <para> +&return.success; </para> <para> - For downward compatibility <function>mysql_freeresult</function> - can also be used. This is deprecated, however. + Z důvodů zpětné kompatibility můžete také narazit na funkci +<function>mysql_freeresult</function>. Tuto funkci však nedoporučujeme používat, +neboť nemusí být již v dalších verzích PHP podporována. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-get-client-info.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-get-client-info.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-get-client-info.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-get-client-info.xml:1.1 Sun Apr 14 19:47:09 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-get-client-info.xml Tue May 28 +18:24:04 2002 @@ -4,7 +4,7 @@ <refentry id="function.mysql-get-client-info"> <refnamediv> <refname>mysql_get_client_info</refname> - <refpurpose>Načte MySQL klient info</refpurpose> + <refpurpose>Načte verzi klientské knihovny MySQL</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -13,11 +13,11 @@ <void/> </methodsynopsis> <para> - <function>mysql_get_client_info</function> returns a string that - represents the client library version. - </para> + <function>mysql_get_client_info</function> vrátí řetězec obsahující verzi +používané klientské knihovny MySQL. + </para> <para> - <function>mysql_get_client_info</function> was added in PHP 4.0.5. + <function>mysql_get_client_info</function> byla přidána v PHP 4.0.5. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-get-host-info.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-get-host-info.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-get-host-info.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-get-host-info.xml:1.1 Sun Apr 14 19:47:09 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-get-host-info.xml Tue May 28 18:24:04 +2002 @@ -4,7 +4,7 @@ <refentry id="function.mysql-get-host-info"> <refnamediv> <refname>mysql_get_host_info</refname> - <refpurpose>Načte MySQL host info</refpurpose> + <refpurpose>Načte informaci o host v MySQL</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -14,14 +14,13 @@ choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_get_host_info</function> returns a string - describing the type of connection in use for the connection - <parameter>spojeni</parameter>, including the server host - name. If <parameter>spojeni</parameter> is omited, the - last opened connection will be used. - </para> + <function>mysql_get_host_info</function> vrací řetězec popisující +použitý typ spojení v <parameter>spojeni</parameter>, obsahující server +host name. Pokud <parameter>spojeni</parameter> je vynecháno, použije posledně +otevřené spojení. + </para> <para> - <function>mysql_get_host_info</function> was added in PHP 4.0.5. + <function>mysql_get_host_info</function> byla přidána v PHP 4.0.5. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-get-proto-info.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-get-proto-info.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-get-proto-info.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-get-proto-info.xml:1.1 Sun Apr 14 19:47:09 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-get-proto-info.xml Tue May 28 +18:24:04 2002 @@ -4,7 +4,7 @@ <refentry id="function.mysql-get-proto-info"> <refnamediv> <refname>mysql_get_proto_info</refname> - <refpurpose>Načte MySQL protokol info</refpurpose> + <refpurpose>Načte informace o protokolu MySQL</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -14,14 +14,14 @@ choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_get_proto_info</function> returns the protocol - version used by connection - <parameter>spojeni</parameter>. If - <parameter>spojeni</parameter> is omited, the last opened - connection will be used. + <function>mysql_get_proto_info</function> vrací číslo verze protokolu v +použitém <parameter>spojeni</parameter>. Je-li + <parameter>spojeni</parameter> vynecháno, použije se posledně otevřené +spojení. + </para> <para> - <function>mysql_get_proto_info</function> was added in PHP 4.0.5. + <function>mysql_get_proto_info</function> byla přidána v PHP 4.0.5. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-get-server-info.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-get-server-info.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-get-server-info.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-get-server-info.xml:1.1 Sun Apr 14 19:47:09 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-get-server-info.xml Tue May 28 +18:24:04 2002 @@ -4,7 +4,7 @@ <refentry id="function.mysql-get-server-info"> <refnamediv> <refname>mysql_get_server_info</refname> - <refpurpose>Načte MySQL server info</refpurpose> + <refpurpose>Načte informace o serveru MySQL</refpurpose> </refnamediv> <refsect1> <title>Popis</title> @@ -14,14 +14,13 @@ choice="opt"><type>resource</type><parameter>spojeni</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_get_server_info</function> returns the server - version used by connection - <parameter>spojeni</parameter>. If - <parameter>spojeni</parameter> is omited, the last opened - connection will be used. + <function>mysql_get_server_info</function> vrátí verzi serveru v použitém + <parameter>spojeni</parameter>. Pokud je + <parameter>spojeni</parameter> vynecháno, použije se posledně otevřené +spojení. </para> <para> - <function>mysql_get_server_info</function> was added in PHP 4.0.5. + <function>mysql_get_server_info</function> byla přidána PHP 4.0.5. </para> </refsect1> </refentry> Index: phpdoc-cs/reference/mysql/functions/mysql-insert-id.xml diff -u phpdoc-cs/reference/mysql/functions/mysql-insert-id.xml:1.1 phpdoc-cs/reference/mysql/functions/mysql-insert-id.xml:1.2 --- phpdoc-cs/reference/mysql/functions/mysql-insert-id.xml:1.1 Sun Apr 14 19:47:09 2002 +++ phpdoc-cs/reference/mysql/functions/mysql-insert-id.xml Tue May 28 18:24:04 +2002 @@ -17,38 +17,35 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>mysql_insert_id</function> returns the ID generated for - an AUTO_INCREMENT column by the previous INSERT query using the - given <parameter>spojeni</parameter>. If - <parameter>spojeni</parameter> isn't specified, the last - opened link is assumed. - </para> + <function>mysql_insert_id</function> vrací hodnotu ID vygenerovanou +pro sloupec AUTO_INCREMENT předchozím dotazem typu INSERT indetifikovaný +parametrem <parameter>spojeni</parameter>. Pokud je + <parameter>spojeni</parameter> vynecháno, použije se posledně otevřené +spojení. + </para> <para> - <function>mysql_insert_id</function> returns 0 if the previous - query does not generate an AUTO_INCREMENT value. If you need to - save the value for later, be sure to call - <function>mysql_insert_id</function> immediately after the - query that generates the value. - </para> + <function>mysql_insert_id</function> vrací 0 pokud pro předchozí dotaz +nebyla vygenerována žádná hodnota pomocí AUTO_INCREMENT. I v případě, +že potřebujete hodnotu použít později, dbejte na to, abyste funkci +<function>mysql_insert_id</function> okamžitě po dotazu, pro nějž byla +vygenerována hodnota pomocí AUTO_INCREMENT. +</para> <note> <para> - The value of the MySQL SQL function - <literal>LAST_INSERT_ID()</literal> always contains the most - recently generated AUTO_INCREMENT value, and is not reset - between queries. - </para> - </note> - <warning> + Hodnota MySQL SQL funkce + <literal>LAST_INSERT_ID()</literal> vždy obsahuje nejvyšší posledně +vygenerovanou hodnotu AUTO_INCREMENT a není mezi dalšími dotazy +vynulována. + </para> + </note> + <warning> <para> - <function>mysql_insert_id</function> converts the return type of - the native MySQL C API function - <literal>mysql_insert_id()</literal> to a type of - <literal>long</literal> (named <type>int</type> in PHP). - If your AUTO_INCREMENT column has a column type of BIGINT, - the value returned by <function>mysql_insert_id</function> - will be incorrect. Instead, use the internal MySQL SQL function - <literal>LAST_INSERT_ID()</literal> in an SQL query. - </para> + <function>mysql_insert_id</function> převádí typ vrácený nativní MySQL C +API funkcí <literal>mysql_insert_id()</literal> z typu <literal>long</literal> +(ekvivalent v PHP <type>int</type>). Pokud je sloupec AUTO_INCREMENT typu +BIGINT, hodnota vrácená <function>mysql_insert_id</function> +bude nesprávná. Místo toho použijte vnitřní MySQL SQL funkci +<literal>LAST_INSERT_ID()</literal> přímo v SQL dotazu. </para> </warning> </refsect1> </refentry>