mirror of
https://github.com/php/doc-ru.git
synced 2025-08-20 23:31:15 +00:00
Updated translation.
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@311566 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@ -1,31 +1,86 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: shein Status: ready -->
|
||||||
|
<!-- Reviewed: no -->
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: n/a Maintainer: lovchy Status: ready -->
|
<refentry xml:id="function.mysql-field-len" xmlns="http://docbook.org/ns/docbook">
|
||||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.17 -->
|
<refnamediv>
|
||||||
<refentry xml:id="function.mysql-field-len" xmlns="http://docbook.org/ns/docbook">
|
<refname>mysql_field_len</refname>
|
||||||
<refnamediv>
|
<refpurpose>Возвращает длину указанного поля</refpurpose>
|
||||||
<refname>mysql_field_len</refname>
|
</refnamediv>
|
||||||
<refpurpose>
|
|
||||||
Возвращает длину указанного поля.
|
<refsect1 role="description">
|
||||||
</refpurpose>
|
&reftitle.description;
|
||||||
</refnamediv>
|
<methodsynopsis>
|
||||||
<refsect1>
|
<type>int</type><methodname>mysql_field_len</methodname>
|
||||||
<title>Описание</title>
|
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
||||||
<methodsynopsis>
|
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
|
||||||
<type>int</type><methodname>mysql_field_len</methodname>
|
</methodsynopsis>
|
||||||
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
<para>
|
||||||
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
|
<function>mysql_field_len</function> возвращает длину указанного поля.
|
||||||
</methodsynopsis>
|
</para>
|
||||||
<para>
|
</refsect1>
|
||||||
<function>mysql_field_len</function> возвращает длину указанной колонки.
|
|
||||||
</para>
|
<refsect1 role="parameters">
|
||||||
<para>
|
&reftitle.parameters;
|
||||||
Для совместимости, как алиас, доступна устаревшая функция
|
<para>
|
||||||
<function>mysql_fieldlen</function>. Однако, использовать её крайне не
|
<variablelist>
|
||||||
рекомендуется.
|
&mysql.result.description;
|
||||||
</para>
|
&mysql.field-offset.req.description;
|
||||||
</refsect1>
|
</variablelist>
|
||||||
</refentry>
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 role="returnvalues">
|
||||||
|
&reftitle.returnvalues;
|
||||||
|
<para>
|
||||||
|
Длина указанного поля в случае успеха&return.falseforfailure;.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 role="examples">
|
||||||
|
&reftitle.examples;
|
||||||
|
<para>
|
||||||
|
<example>
|
||||||
|
<title>Пример использования <function>mysql_field_len</function></title>
|
||||||
|
<programlisting role="php">
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
|
||||||
|
if (!$result) {
|
||||||
|
echo 'Не удалось выполнить запрос: ' . mysql_error();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Получит длину поля id так, как указано в структуре базы данных
|
||||||
|
$length = mysql_field_len($result, 0);
|
||||||
|
echo $length;
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
</example>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 role="notes">
|
||||||
|
&reftitle.notes;
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
&info.deprecated.alias;
|
||||||
|
<function>mysql_fieldlen</function>
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 role="seealso">
|
||||||
|
&reftitle.seealso;
|
||||||
|
<para>
|
||||||
|
<simplelist>
|
||||||
|
<member><function>mysql_fetch_lengths</function></member>
|
||||||
|
<member><function>strlen</function></member>
|
||||||
|
</simplelist>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
|
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
@ -38,7 +93,7 @@ sgml-indent-step:1
|
|||||||
sgml-indent-data:t
|
sgml-indent-data:t
|
||||||
indent-tabs-mode:nil
|
indent-tabs-mode:nil
|
||||||
sgml-parent-document:nil
|
sgml-parent-document:nil
|
||||||
sgml-default-dtd-file:"../~/.phpdoc/manual.ced"
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||||||
sgml-exposed-tags:nil
|
sgml-exposed-tags:nil
|
||||||
sgml-local-catalogs:nil
|
sgml-local-catalogs:nil
|
||||||
sgml-local-ecat-files:nil
|
sgml-local-ecat-files:nil
|
||||||
|
Reference in New Issue
Block a user