cvs: phpdoc-zh /reference/mysql/functions mysql-client-encoding.xml mysql-close.xml
| From: | Dallas Thunder | Date: | Tue, 25 Feb 2003 09:12:50 +0000 |
| Subject: | cvs: phpdoc-zh /reference/mysql/functions mysql-client-encoding.xml mysql-close.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1134@lists.php.net to get a copy of this message | ||
dallas Tue Feb 25 04:12:50 2003 EDT
Added files:
/phpdoc-zh/reference/mysql/functions mysql-client-encoding.xml
mysql-close.xml
Log:
Complete 1.2 1.3
Index: phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-character-set-name">
<refnamediv>
<refname>mysql_client_encoding</refname>
<refpurpose>·µ»Ø×Ö·û¼¯µÄÃû³Æ</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>int</type><methodname>mysql_client_encoding</methodname>
<methodparam
choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_client_encoding</function>
·µ»Øµ±Ç°Á¬½ÓµÄĬÈÏ×Ö·û¼¯Ãû³Æ¡£
</para>
<example>
<title><function>mysql_client_encoding</function> Àý×Ó</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$charset = mysql_client_encoding($link);
printf ("current character set is %s\n", $charset);
?>
]]>
</programlisting>
<para>
ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º
<screen>
<![CDATA[
current character set is latin1
]]>
</screen>
</para>
</example>
<para>
²Î¼û <function>mysql_real_escape_string</function>¡£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-zh/reference/mysql/functions/mysql-close.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-close.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-close">
<refnamediv>
<refname>mysql_close</refname>
<refpurpose>¹Ø±Õ MySQL Á¬½Ó</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>bool</type><methodname>mysql_close</methodname>
<methodparam choice="opt"><type>resource</type><parameter>
link_identifier
</parameter></methodparam>
</methodsynopsis>
<para>
&return.success;
</para>
<para>
<function>mysql_close</function>
¹Ø±ÕÖ¸¶¨µÄÁ¬½Ó±êʶËù¹ØÁªµÄµ½
MySQL ·þÎñÆ÷µÄÁ¬½Ó¡£Èç¹ûûÓÐÖ¸¶¨
<parameter>link_identifier</parameter>£¬Ôò¹Ø±ÕÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£
</para>
<para>
ͨ³£²»ÐèҪʹÓÃ
<function>mysql_close</function>£¬ÒòΪÒÑ´ò¿ªµÄ·Ç³Ö¾ÃÁ¬½Ó»áÔڽű¾Ö´ÐÐÍê±Ïºó×Ô¶¯¹Ø±Õ¡£²Î¼û<link
linkend="language.types.resource.self-destruct">ÊÍ·Å×ÊÔ´</link>¡£
</para>
<note>
<para>
<function>mysql_close</function> ²»»á¹Ø±ÕÓÉ
<function>mysql_pconnect</function> ½¨Á¢µÄ³Ö¾ÃÁ¬½Ó¡£
</para>
</note>
<example>
<title>MySQL ¹Ø±ÕÀý×Ó</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
]]>
</programlisting>
</example>
<para>
²Î¼û <function>mysql_connect</function> ºÍ
<function>mysql_pconnect</function>¡£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->