mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
adding extra tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@169455 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a06eea9818
commit
c8b844ebea
7 changed files with 48 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-connect">
|
||||
<refnamediv>
|
||||
|
@ -71,8 +71,9 @@
|
|||
a new link, even if <function>mysql_connect</function> was called
|
||||
before with the same parameters. The <parameter>client_flags</parameter>
|
||||
parameter can be a combination of the constants
|
||||
MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or
|
||||
MYSQL_CLIENT_INTERACTIVE.
|
||||
<constant>MYSQL_CLIENT_COMPRESS</constant>,
|
||||
<constant>MYSQL_CLIENT_IGNORE_SPACE</constant> or
|
||||
<constant>MYSQL_CLIENT_INTERACTIVE</constant>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-data-seek">
|
||||
<refnamediv>
|
||||
|
@ -13,9 +13,6 @@
|
|||
<methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>row_number</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<function>mysql_data_seek</function> moves the internal row
|
||||
pointer of the MySQL result associated with the specified result
|
||||
|
@ -23,11 +20,15 @@
|
|||
to <function>mysql_fetch_row</function> would return that row.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>Row_number</parameter> starts at 0. The <parameter>
|
||||
row_number</parameter> should be a value in the range from 0 to
|
||||
mysql_num_rows - 1. However if the result set is empty (mysql_num_rows ==
|
||||
0), a seek to 0 will fail with a <link linkend="e-warning">E_WARNING
|
||||
</link> and <function>mysql_data_seek</function> will return &false;.
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<parameter>row_number</parameter> starts at 0. The
|
||||
<parameter>row_number</parameter> should be a value in the range from 0 to
|
||||
<function>mysql_num_rows</function> - 1. However if the result set
|
||||
is empty (<function>mysql_num_rows</function> == 0), a seek to 0 will
|
||||
fail with a <link linkend="e-warning">E_WARNING</link> and
|
||||
<function>mysql_data_seek</function> will return &false;.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-drop-db">
|
||||
<refnamediv>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<warning>
|
||||
<para>
|
||||
This function will not be available
|
||||
if the MySQL extension was built against a MySQL 4.x client library
|
||||
if the MySQL extension was built against a MySQL 4.x client library.
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.27 -->
|
||||
<refentry id="function.mysql-fetch-array">
|
||||
<refnamediv>
|
||||
|
@ -52,22 +52,27 @@ SELECT table1.field AS foo, table2.field AS bar FROM table1, table2
|
|||
<para>
|
||||
The optional second argument <parameter>result_type</parameter>
|
||||
in <function>mysql_fetch_array</function> is a constant and can
|
||||
take the following values: MYSQL_ASSOC, MYSQL_NUM, and
|
||||
MYSQL_BOTH. This feature was added in PHP 3.0.7. MYSQL_BOTH
|
||||
take the following values: <constant>MYSQL_ASSOC</constant>,
|
||||
<constant>MYSQL_NUM</constant>, and <constant>MYSQL_BOTH</constant>.
|
||||
This feature was added in PHP 3.0.7. <constant>MYSQL_BOTH</constant>
|
||||
is the default for this argument.
|
||||
</para>
|
||||
<para>
|
||||
By using MYSQL_BOTH, you'll get an array with both associative
|
||||
and number indices. Using MYSQL_ASSOC, you only get associative
|
||||
By using <constant>MYSQL_BOTH</constant>, you'll get an array
|
||||
with both associative and number indices. Using
|
||||
<constant>MYSQL_ASSOC</constant>, you only get associative
|
||||
indices (as <function>mysql_fetch_assoc</function> works),
|
||||
using MYSQL_NUM, you only get number indices (as
|
||||
using <constant>MYSQL_NUM</constant>, you only get number indices (as
|
||||
<function>mysql_fetch_row</function> works).
|
||||
</para>
|
||||
&database.field-case;
|
||||
&database.fetch-null;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_NUM</title>
|
||||
<title>
|
||||
<function>mysql_fetch_array</function> with
|
||||
<constant>MYSQL_NUM</constant>
|
||||
</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -87,7 +92,9 @@ mysql_free_result($result);
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_ASSOC</title>
|
||||
<title>
|
||||
<function>mysql_fetch_array</function> with <constant>MYSQL_ASSOC</constant>
|
||||
</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -107,7 +114,9 @@ mysql_free_result($result);
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_BOTH</title>
|
||||
<title>
|
||||
<function>mysql_fetch_array</function> with <constant>MYSQL_BOTH</constant>
|
||||
</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.17 -->
|
||||
<refentry id="function.mysql-field-flags">
|
||||
<refnamediv>
|
||||
|
@ -22,9 +22,12 @@
|
|||
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".
|
||||
is current enough to support them: <literal>"not_null"</literal>,
|
||||
<literal>"primary_key"</literal>, <literal>"unique_key"</literal>,
|
||||
<literal>"multiple_key"</literal>, <literal>"blob"</literal>,
|
||||
<literal>"unsigned"</literal>, <literal>"zerofill"</literal>,
|
||||
<literal>"binary"</literal>, <literal>"enum"</literal>,
|
||||
<literal>"auto_increment"</literal> et <literal>"timestamp"</literal>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-field-type">
|
||||
<refnamediv>
|
||||
|
@ -19,7 +19,8 @@
|
|||
<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
|
||||
will be one of <literal>"int"</literal>, <literal>"real"</literal>,
|
||||
<literal>"string"</literal>, <literal>"blob"</literal>, and others as
|
||||
detailed in the <ulink url="&url.mysql.docs;">MySQL
|
||||
documentation</ulink>.
|
||||
<example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<section id="mysql.configuration">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
|
@ -170,7 +170,7 @@
|
|||
<para>
|
||||
The default server host to use when connecting to the database
|
||||
server if no other host is specified. Doesn't apply in
|
||||
<link linkend="ini.safe-mode">safe mode</link>.
|
||||
&safemode;.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -184,7 +184,7 @@
|
|||
<para>
|
||||
The default user name to use when connecting to the database
|
||||
server if no other name is specified. Doesn't apply in
|
||||
<link linkend="ini.safe-mode">safe mode</link>.
|
||||
&safemode;.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -198,7 +198,7 @@
|
|||
<para>
|
||||
The default password to use when connecting to the database
|
||||
server if no other password is specified. Doesn't apply in
|
||||
<link linkend="ini.safe-mode">safe mode</link>.
|
||||
&safemode;.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue