Added last mysql_get_*_info.

TODO : check version availability, add examples.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48028 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2001-05-21 09:37:24 +00:00
parent d520283ec5
commit 46c7321035

View file

@ -625,7 +625,7 @@ echo mysql_errno().": ".mysql_error()."<BR>";
<refnamediv>
<refname>mysql_escape_string</refname>
<refpurpose>
Escapes a string for use in a MySQL-query.
Escapes a string for use in a mysql_query.
</refpurpose>
</refnamediv>
<refsect1>
@ -638,7 +638,7 @@ echo mysql_errno().": ".mysql_error()."&lt;BR>";
</funcsynopsis>
<para>
This function will escape the <parameter>unescaped_string</parameter>,
so that it is safe to place it in a MySQL-query.
so that it is safe to place it in a <function>mysql_query</function>.
</para>
<note>
<simpara>
@ -1979,6 +1979,104 @@ while ($i &lt; mysql_num_rows ($result)) {
</refsect1>
</refentry>
<refentry id="function.mysql-get-client-info">
<refnamediv>
<refname>mysql_get_client_info</refname>
<refpurpose>Get MySQL client info</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>mysql_get_client_info</function></funcdef>
<paramdef>void <parameter></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>mysql_get_client_info</function> returns a string that represents
the client library version.
</para>
<para>
<function>mysql_get_client_info</function> was added in PHP 4.0.5.
</para>
</refsect1>
</refentry>
<refentry id="function.mysql-get-host-info">
<refnamediv>
<refname>mysql_get_host_info</refname>
<refpurpose>Get MySQL host info</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>string <function>mysql_get_host_info</function></funcdef>
<paramdef>resource <parameter><optional>link_identifier</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>mysql_get_host_info</function> returns a string
describing the type of connection in use for the connection
<parameter>link_identifier</parameter>, including the server host name.
If <parameter>link_identifier</parameter> is omited, the last opened
connection will be used.
</para>
<para>
<function>mysql_get_host_info</function> was added in PHP 4.0.5.
</para>
</refsect1>
</refentry>
<refentry id="function.mysql-get-proto-info">
<refnamediv>
<refname>mysql_get_proto_info</refname>
<refpurpose>Get MySQL protocol info</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>mysql_get_proto_info</function></funcdef>
<paramdef>resource <parameter><optional>link_identifier</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>mysql_get_proto_info</function> returns the protocol version
used by connection <parameter>link_identifier</parameter>.
If <parameter>link_identifier</parameter> is omited, the last opened
connection will be used.
</para>
<para>
<function>mysql_get_proto_info</function> was added in PHP 4.0.5.
</para>
</refsect1>
</refentry>
<refentry id="function.mysql-get-server-info">
<refnamediv>
<refname>mysql_get_server_info</refname>
<refpurpose>Get MySQL server info</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>mysql_get_server_info</function></funcdef>
<paramdef>resource <parameter><optional>link_identifier</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>mysql_get_server_info</function> returns the server version
used by connection <parameter>link_identifier</parameter>.
If <parameter>link_identifier</parameter> is omited, the last opened
connection will be used.
</para>
<para>
<function>mysql_get_server_info</function> was added in PHP 4.0.5.
</para>
</refsect1>
</refentry>
</reference>
<!-- Keep this comment at the end of the file