mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixed structures and added example for mysql_result()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@134529 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cc3130e361
commit
b938afd852
41 changed files with 311 additions and 237 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-affected-rows">
|
||||
<refnamediv>
|
||||
|
@ -73,13 +73,13 @@
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Records deleted: 10
|
||||
Records deleted: 0
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
<example>
|
||||
<title>Update-Query</title>
|
||||
|
@ -100,17 +100,17 @@ mysql_query("COMMIT");
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Updated Records: 10
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_num_rows</function>,
|
||||
<function>mysql_info</function>.
|
||||
See also <function>mysql_num_rows</function>,
|
||||
<function>mysql_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -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.100 -->
|
||||
<refentry id="function.mysql-client-encoding">
|
||||
<refnamediv>
|
||||
|
@ -16,6 +16,7 @@
|
|||
<function>mysql_client_encoding</function> returns the default
|
||||
character set name for the current connection.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_client_encoding</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
@ -29,15 +30,16 @@ printf ("current character set is %s\n", $charset);
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
current character set is latin1
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
See also
|
||||
<function>mysql_real_escape_string</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -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.2 -->
|
||||
<refentry id="function.mysql-close">
|
||||
<refnamediv>
|
||||
|
@ -35,9 +35,10 @@
|
|||
created by <function>mysql_pconnect</function>.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>MySQL close example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title>MySQL close example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
|
||||
|
@ -46,10 +47,11 @@
|
|||
mysql_close($link);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_connect</function>, and
|
||||
See also <function>mysql_connect</function> and
|
||||
<function>mysql_pconnect</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-connect">
|
||||
<refnamediv>
|
||||
|
@ -93,9 +93,10 @@
|
|||
the script ends, unless it's closed earlier by explicitly calling
|
||||
<function>mysql_close</function>.
|
||||
</para>
|
||||
<example>
|
||||
<title>MySQL connect example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_connect</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
|
||||
|
@ -104,9 +105,11 @@
|
|||
mysql_close($link);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para> See also
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>mysql_pconnect</function> and
|
||||
<function>mysql_close</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-create-db">
|
||||
<refnamediv>
|
||||
|
@ -23,9 +23,10 @@
|
|||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<example>
|
||||
<title>MySQL create database example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title>MySQL create database example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_pconnect("localhost", "mysql_user", "mysql_password")
|
||||
|
@ -38,8 +39,9 @@
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
For downwards compatibility <function>mysql_createdb</function>
|
||||
can also be used. This is deprecated, however.
|
||||
|
@ -58,8 +60,9 @@
|
|||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
See also: <function>mysql_drop_db</function>,
|
||||
<function>mysql_query</function>.
|
||||
See also
|
||||
<function>mysql_drop_db</function> and
|
||||
<function>mysql_query</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-data-seek">
|
||||
<refnamediv>
|
||||
|
@ -34,9 +34,10 @@
|
|||
<function>mysql_unbuffered_query</function>.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>MySQL data seek example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_data_seek</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_pconnect("localhost", "mysql_user", "mysql_password")
|
||||
|
@ -65,11 +66,13 @@
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_query</function>,
|
||||
<function>mysql_num_rows</function>.
|
||||
See also
|
||||
<function>mysql_query</function> and
|
||||
<function>mysql_num_rows</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.23 -->
|
||||
<refentry id="function.mysql-db-name">
|
||||
<refnamediv>
|
||||
|
@ -29,9 +29,10 @@
|
|||
<function>mysql_error</function> to determine the nature of the
|
||||
error.
|
||||
</para>
|
||||
<example>
|
||||
<title><function>mysql_db_name</function> example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_db_name</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
@ -47,8 +48,9 @@
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
For backward compatibility, <function>mysql_dbname</function> is
|
||||
also accepted. This is deprecated, however.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-drop-db">
|
||||
<refnamediv>
|
||||
|
@ -41,7 +41,8 @@
|
|||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
See also <function>mysql_create_db</function>, and
|
||||
See also
|
||||
<function>mysql_create_db</function> and
|
||||
<function>mysql_query</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-errno">
|
||||
<refnamediv>
|
||||
|
@ -65,7 +65,7 @@
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also: <function>mysql_error</function>
|
||||
See also <function>mysql_error</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-error">
|
||||
<refnamediv>
|
||||
|
@ -64,7 +64,7 @@
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also: <function>mysql_errno</function>
|
||||
See also <function>mysql_errno</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-escape-string">
|
||||
<refnamediv>
|
||||
|
@ -31,9 +31,10 @@
|
|||
connection argument and does not respect the current charset setting.
|
||||
</simpara>
|
||||
</note>
|
||||
<example>
|
||||
<title><function>mysql_escape_string</function> example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_escape_string</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$item = "Zak's Laptop";
|
||||
|
@ -41,20 +42,21 @@
|
|||
printf ("Escaped string: %s\n", $escaped_item);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Escaped string: Zak\'s Laptop
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</example>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
See also
|
||||
<function>mysql_real_escape_string</function>,
|
||||
<function>addslashes</function>, and the
|
||||
<function>addslashes</function> and the
|
||||
<link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>
|
||||
directive.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.27 -->
|
||||
<refentry id="function.mysql-fetch-array">
|
||||
<refnamediv>
|
||||
|
@ -64,9 +64,10 @@ select table1.field as foo, table2.field as bar from table1, table2
|
|||
<function>mysql_fetch_row</function> works).
|
||||
</para>
|
||||
&database.field-case;
|
||||
<example>
|
||||
<title>mysql_fetch_array with MYSQL_NUM</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_NUM</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -82,11 +83,11 @@ select table1.field as foo, table2.field as bar from table1, table2
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>mysql_fetch_array with MYSQL_ASSOC</title>
|
||||
<programlisting role="php">
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_ASSOC</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -102,11 +103,11 @@ select table1.field as foo, table2.field as bar from table1, table2
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>mysql_fetch_array with MYSQL_BOTH</title>
|
||||
<programlisting role="php">
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title><function>mysql_fetch_array</function> with MYSQL_BOTH</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -122,8 +123,9 @@ select table1.field as foo, table2.field as bar from table1, table2
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>mysql_fetch_row</function> and
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.45 -->
|
||||
<refentry id="function.mysql-fetch-assoc">
|
||||
<refnamediv>
|
||||
|
@ -42,9 +42,10 @@
|
|||
provides a significant added value.
|
||||
</para>
|
||||
&database.field-case;
|
||||
<example>
|
||||
<title>An expanded <function>mysql_fetch_assoc</function> example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title>An expanded <function>mysql_fetch_assoc</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -90,13 +91,14 @@
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>mysql_fetch_row</function>,
|
||||
<function>mysql_fetch_array</function>,
|
||||
<function>mysql_query</function>, and
|
||||
<function>mysql_query</function> and
|
||||
<function>mysql_error</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-fetch-field">
|
||||
<refnamediv>
|
||||
|
@ -92,9 +92,10 @@
|
|||
</itemizedlist>
|
||||
</para>
|
||||
&database.field-case;
|
||||
<example>
|
||||
<title><function>mysql_fetch_field</function></title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_fetch_field</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect('localhost:3306', $user, $password)
|
||||
|
@ -129,8 +130,9 @@ zerofill: $meta->zerofill
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>mysql_field_seek</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-fetch-lengths">
|
||||
<refnamediv>
|
||||
|
@ -28,7 +28,7 @@
|
|||
offset 0.
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_fetch_row</function>.
|
||||
See also <function>mysql_fetch_row</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-fetch-object">
|
||||
<refnamediv>
|
||||
|
@ -62,7 +62,9 @@ mysql_free_result($result);
|
|||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_fetch_array</function> and
|
||||
See also
|
||||
<function>mysql_fetch_array</function>,
|
||||
<function>mysql_fetch_assoc</function> and
|
||||
<function>mysql_fetch_row</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-fetch-row">
|
||||
<refnamediv>
|
||||
|
@ -29,10 +29,12 @@
|
|||
</para>
|
||||
&database.field-case;
|
||||
<para>
|
||||
See also: <function>mysql_fetch_array</function>,
|
||||
See also
|
||||
<function>mysql_fetch_array</function>,
|
||||
<function>mysql_fetch_assoc</function>,
|
||||
<function>mysql_fetch_object</function>,
|
||||
<function>mysql_data_seek</function>,
|
||||
<function>mysql_fetch_lengths</function>, and
|
||||
<function>mysql_fetch_lengths</function> and
|
||||
<function>mysql_result</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-field-name">
|
||||
<refnamediv>
|
||||
|
@ -53,13 +53,13 @@ echo mysql_field_name($res, 2);
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
user_id
|
||||
password
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-field-seek">
|
||||
<refnamediv>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<function>mysql_field_seek</function> will be returned.
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_fetch_field</function>.
|
||||
See also <function>mysql_fetch_field</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-field-type">
|
||||
<refnamediv>
|
||||
|
@ -23,7 +23,7 @@
|
|||
detailed in the <ulink url="&url.mysql.docs;">MySQL
|
||||
documentation</ulink>.
|
||||
<example>
|
||||
<title>MySQL field types</title>
|
||||
<title><function>mysql_field_type</function> example</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.62 -->
|
||||
<refentry id="function.mysql-get-client-info">
|
||||
<refnamediv>
|
||||
|
@ -16,28 +16,31 @@
|
|||
<function>mysql_get_client_info</function> returns a string that
|
||||
represents the client library version.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_client_info Example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_get_client_info</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
printf ("MySQL client info: %s\n", mysql_get_client_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL client info: 3.23.39
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_get_host_info</function>,
|
||||
<function>mysql_get_proto_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
See also
|
||||
<function>mysql_get_host_info</function>,
|
||||
<function>mysql_get_proto_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-host-info">
|
||||
<refnamediv>
|
||||
|
@ -19,9 +19,10 @@
|
|||
name. If <parameter>link_identifier</parameter> is omitted, the
|
||||
last opened connection will be used.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_host_info Example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_get_host_info</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -29,20 +30,22 @@
|
|||
printf ("MySQL host info: %s\n", mysql_get_host_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL host info: Localhost via UNIX socket
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_proto_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
See also
|
||||
<function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_proto_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-get-proto-info">
|
||||
<refnamediv>
|
||||
|
@ -19,9 +19,10 @@
|
|||
<parameter>link_identifier</parameter> is omitted, the last opened
|
||||
connection will be used.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_proto_info Example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_get_proto_info</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -29,20 +30,22 @@
|
|||
printf ("MySQL protocol version: %s\n", mysql_get_proto_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL protocol version: 10
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
See also
|
||||
<function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_server_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 -->
|
||||
<refentry id="function.mysql-get-server-info">
|
||||
<refnamediv>
|
||||
|
@ -19,9 +19,10 @@
|
|||
<parameter>link_identifier</parameter> is omitted, the last opened
|
||||
connection will be used.
|
||||
</para>
|
||||
<example>
|
||||
<title>mysql_get_server_info Example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_get_server_info</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -29,20 +30,22 @@
|
|||
printf ("MySQL server version: %s\n", mysql_get_server_info());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
MySQL server version: 4.0.1-alpha
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_proto_info</function>.
|
||||
See also
|
||||
<function>mysql_get_client_info</function>,
|
||||
<function>mysql_get_host_info</function> and
|
||||
<function>mysql_get_proto_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-info">
|
||||
<refnamediv>
|
||||
|
@ -54,7 +54,7 @@ String format: Rows matched: 65 Changed: 65 Warnings: 0
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also: <function>mysql_affected_rows</function>
|
||||
See also <function>mysql_affected_rows</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-insert-id">
|
||||
<refnamediv>
|
||||
|
@ -50,9 +50,10 @@
|
|||
<literal>LAST_INSERT_ID()</literal> in an SQL query.
|
||||
</para>
|
||||
</warning>
|
||||
<example>
|
||||
<title>mysql_insert_id Example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_insert_id</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
mysql_connect("localhost", "mysql_user", "mysql_password") or
|
||||
|
@ -63,10 +64,11 @@
|
|||
printf ("Last inserted record has id %d\n", mysql_insert_id());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_query</function>.
|
||||
See also <function>mysql_query</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -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.16 -->
|
||||
<refentry id="function.mysql-list-dbs">
|
||||
<refnamediv>
|
||||
|
@ -40,15 +40,15 @@ while ($row = mysql_fetch_object($db_list)) {
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
database1
|
||||
database2
|
||||
database3
|
||||
...
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<note>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-list-fields">
|
||||
<refnamediv>
|
||||
|
@ -43,15 +43,15 @@ for ($i = 0; $i < $columns; $i++) {
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
field1
|
||||
field2
|
||||
field3
|
||||
...
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -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.96 -->
|
||||
<refentry id="function.mysql-list-processes">
|
||||
<refnamediv>
|
||||
|
@ -37,18 +37,18 @@ mysql_free_result ($result);
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
1 localhost test Processlist 0
|
||||
4 localhost mysql sleep 5
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
<function>mysql_thread_id</function>
|
||||
See also
|
||||
<function>mysql_thread_id</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-list-tables">
|
||||
<refnamediv>
|
||||
|
@ -41,9 +41,10 @@
|
|||
</simpara>
|
||||
</note>
|
||||
</para>
|
||||
<example>
|
||||
<title><function>mysql_list_tables</function> example</title>
|
||||
<programlisting role="php">
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_list_tables</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$dbname = 'mysql_dbname';
|
||||
|
@ -68,11 +69,13 @@
|
|||
mysql_free_result($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_list_dbs</function>,
|
||||
and <function>mysql_tablename</function>.
|
||||
See also
|
||||
<function>mysql_list_dbs</function> and
|
||||
<function>mysql_tablename</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-num-fields">
|
||||
<refnamediv>
|
||||
|
@ -20,8 +20,9 @@
|
|||
See also
|
||||
<function>mysql_select_db</function>,
|
||||
<function>mysql_query</function>,
|
||||
<function>mysql_fetch_field</function>, and
|
||||
<function>mysql_num_rows</function>.</para>
|
||||
<function>mysql_fetch_field</function> and
|
||||
<function>mysql_num_rows</function>.
|
||||
</para>
|
||||
<para>
|
||||
For downward compatibility <function>mysql_numfields</function>
|
||||
can also be used. This is deprecated however.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-num-rows">
|
||||
<refnamediv>
|
||||
|
@ -49,7 +49,7 @@ echo "$num_rows Rows\n";
|
|||
<function>mysql_affected_rows</function>,
|
||||
<function>mysql_connect</function>,
|
||||
<function>mysql_data_seek</function>,
|
||||
<function>mysql_select_db</function>, and
|
||||
<function>mysql_select_db</function> and
|
||||
<function>mysql_query</function>.
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -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.100 -->
|
||||
<refentry id="function.mysql-ping">
|
||||
<refnamediv>
|
||||
|
@ -24,8 +24,8 @@
|
|||
server is working, otherwise &false;.
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
<function>mysql_thread_id</function>,
|
||||
See also
|
||||
<function>mysql_thread_id</function> and
|
||||
<function>mysql_list_processes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-query">
|
||||
<refnamediv>
|
||||
|
@ -43,7 +43,7 @@
|
|||
The following query is syntactically invalid, so
|
||||
<function>mysql_query</function> fails and returns &false;:
|
||||
<example>
|
||||
<title><function>mysql_query</function></title>
|
||||
<title><function>mysql_query</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<php
|
||||
|
@ -96,7 +96,8 @@ $result = mysql_query("SELECT my_col FROM my_tbl")
|
|||
execution.
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_num_rows</function>,
|
||||
See also
|
||||
<function>mysql_num_rows</function>,
|
||||
<function>mysql_affected_rows</function>,
|
||||
<function>mysql_unbuffered_query</function>,
|
||||
<function>mysql_free_result</function>,
|
||||
|
@ -104,7 +105,7 @@ $result = mysql_query("SELECT my_col FROM my_tbl")
|
|||
<function>mysql_fetch_row</function>,
|
||||
<function>mysql_fetch_assoc</function>,
|
||||
<function>mysql_result</function>,
|
||||
<function>mysql_select_db</function>, and
|
||||
<function>mysql_select_db</function> and
|
||||
<function>mysql_connect</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
|
||||
<refentry id="function.mysql-real-escape-string">
|
||||
<refnamediv>
|
||||
|
@ -27,6 +27,7 @@
|
|||
<literal>%</literal> and <literal>_</literal>.
|
||||
</simpara>
|
||||
</note>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_real_escape_string</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
@ -40,16 +41,17 @@ printf ("Escaped string: %s\n", $escaped_item);
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Escaped string: Zak\'s and Derick\'s Laptop
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
<function>mysql_escape_string</function>,
|
||||
See also
|
||||
<function>mysql_escape_string</function> and
|
||||
<function>mysql_character_set_name</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-result">
|
||||
<refnamediv>
|
||||
|
@ -38,9 +38,30 @@
|
|||
with calls to other functions that deal with the result set.
|
||||
</para>
|
||||
<para>
|
||||
Recommended high-performance alternatives:
|
||||
<example>
|
||||
<title><function>mysql_result</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
|
||||
or die("Could not connect: " . mysql_error());
|
||||
|
||||
$result = mysql_query("SELECT name FROM work.employee")
|
||||
or die("Could not query: . mysql_error());
|
||||
|
||||
echo mysql_result($result,2); // outputs third employee's name
|
||||
|
||||
mysql_close($link);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
Recommended high-performance alternatives :
|
||||
<function>mysql_fetch_row</function>,
|
||||
<function>mysql_fetch_array</function>, and
|
||||
<function>mysql_fetch_array</function>,
|
||||
<function>mysql_fetch_assoc</function> and
|
||||
<function>mysql_fetch_object</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-select-db">
|
||||
<refnamediv>
|
||||
|
@ -30,9 +30,10 @@
|
|||
Every subsequent call to <function>mysql_query</function> will be
|
||||
made on the active database.
|
||||
</para>
|
||||
<para> See also:
|
||||
<para>
|
||||
See also
|
||||
<function>mysql_connect</function>,
|
||||
<function>mysql_pconnect</function>, and
|
||||
<function>mysql_pconnect</function> and
|
||||
<function>mysql_query</function>.
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
|
||||
<refentry id="function.mysql-stat">
|
||||
<refnamediv>
|
||||
|
@ -37,7 +37,8 @@ print_r($status);
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
|
@ -51,8 +52,7 @@ Array
|
|||
[7] => Queries per second avg: 245.595
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-tablename">
|
||||
<refnamediv>
|
||||
|
@ -23,7 +23,7 @@
|
|||
traverse this result pointer, or any function for result tables,
|
||||
such as <function>mysql_fetch_array</function>.
|
||||
<example>
|
||||
<title><function>mysql_tablename</function> Example</title>
|
||||
<title><function>mysql_tablename</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -40,7 +40,8 @@
|
|||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also: <function>mysql_list_tables</function>.
|
||||
See also
|
||||
<function>mysql_list_tables</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
|
||||
<refentry id="function.mysql-thread-id">
|
||||
<refnamediv>
|
||||
|
@ -19,6 +19,7 @@
|
|||
you should not get the thread ID and store it for later. You should get
|
||||
it when you need it.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>mysql_thread_id</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
@ -34,16 +35,17 @@ if ($thread_id){
|
|||
</programlisting>
|
||||
<para>
|
||||
The above example would produce the following output:
|
||||
<screen>
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
current thread id is 73
|
||||
]]>
|
||||
</screen>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
<function>mysql_ping</function>,
|
||||
See also
|
||||
<function>mysql_ping</function> and
|
||||
<function>mysql_list_processes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mysql-unbuffered-query">
|
||||
<refnamediv>
|
||||
|
@ -40,7 +40,7 @@
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also: <function>mysql_query</function>.
|
||||
See also <function>mysql_query</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue