cvs: phpdoc-zh /reference/mysql/functions mysql-affected-rows.xml mysql-client-encoding.xml mysql-close.xml mysql-connect.xml mysql-create-db.xml
mysql-data-seek.xml mysql-db-name.xml mysql-errno.xml mysql-error.xml mysql-escape-string.xml

From: Date: Mon, 18 Aug 2003 23:57:06 +0000
Subject: cvs: phpdoc-zh /reference/mysql/functions mysql-affected-rows.xml mysql-client-encoding.xml mysql-close.xml mysql-connect.xml mysql-create-db.xml
mysql-data-seek.xml mysql-db-name.xml mysql-errno.xml mysql-error.xml mysql-escape-string.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1639@lists.php.net to get a copy of this message
dallas Mon Aug 18 19:57:06 2003 EDT Modified files: /phpdoc-zh/reference/mysql/functions mysql-affected-rows.xml mysql-client-encoding.xml mysql-close.xml mysql-connect.xml mysql-create-db.xml mysql-data-seek.xml mysql-db-name.xml mysql-errno.xml mysql-error.xml mysql-escape-string.xml Log: Updated.

Index: phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.3 phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.4 --- phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.3 Tue May 20 03:01:54 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml Mon Aug 18 19:57:06 2003 @@ -1,15 +1,14 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: gregory $ --> -<!-- EN-Revision: 1.7 Maintainer: yorgo Status: ready --> -<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.9 Maintainer: yorgo Status: ready --> <refentry id="function.mysql-affected-rows"> <refnamediv> <refname>mysql_affected_rows</refname> <refpurpose>È¡µÃǰһ´Î MySQL ²Ù×÷ËùÓ°ÏìµÄ¼Ç¼ÐÐÊý</refpurpose> </refnamediv> <refsect1> - <title>ÃèÊö</title> + <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>mysql_affected_rows</methodname> <methodparam choice="opt"><type>resource</type><parameter> @@ -17,10 +16,10 @@ </parameter></methodparam> </methodsynopsis> <para> - <function>mysql_affected_rows</function> - ·µ»Ø×î½üÒ»´ÎÓë <parameter>Á¬½Ó¾ä±ú</parameter> ¹ØÁªµÄ - INSERT£¬UPDATE »ò DELETE ²éѯËùÓ°ÏìµÄ¼Ç¼ÐÐÊý¡£Èç¹ûÁ¬½Ó¾ä±úûÓÐÖ¸¶¨£¬ - ÔòĬÈÏʹÓÃ×î½üÒ»´ÎÓÉ <function>mysql_connect</function> º¯Êý´ò¿ªµÄÁ¬½Ó¾ä±ú¡£ + <function>mysql_affected_rows</function> + ·µ»Ø×î½üÒ»´ÎÓë <parameter>Á¬½Ó¾ä±ú</parameter> ¹ØÁªµÄ + INSERT£¬UPDATE »ò DELETE ²éѯËùÓ°ÏìµÄ¼Ç¼ÐÐÊý¡£Èç¹ûÁ¬½Ó¾ä±úûÓÐÖ¸¶¨£¬ + ÔòĬÈÏʹÓÃ×î½üÒ»´ÎÓÉ <function>mysql_connect</function> º¯Êý´ò¿ªµÄÁ¬½Ó¾ä±ú¡£ </para> <note> <para> @@ -34,14 +33,14 @@ <note> <para> µ±Ê¹Óà UPDATE ²éѯ£¬MySQL ²»»á½«Ô­ÖµºÍÐÂÖµÒ»ÑùµÄÁиüС£ - ÕâÑùʹµÃ <function>mysql_affected_rows</function> º¯Êý·µ»ØÖµ²»Ò»¶¨¾ÍÊDzéѯÌõ¼þËù·ûºÏµÄ¼Ç¼Êý¡£ + ÕâÑùʹµÃ <function>mysql_affected_rows</function> º¯Êý·µ»ØÖµ²»Ò»¶¨¾ÍÊDzéѯÌõ¼þËù·ûºÏµÄ¼Ç¼Êý¡£ Ö»ÓÐÕæÕý±»Ð޸ĵļǼÊý²Å»á±»·µ»Ø¡£ </para> </note> <para> <function>mysql_affected_rows</function> º¯Êý²»ÊÊÓÃÓÚ - SELECT Óï¾ä£»Ö»ÊÊÓÃÓÚÄܹ»Ð޸ļǼµÄÓï¾äÖС£ÇëʹÓà <function>mysql_num_rows</function> º¯ÊýÀ´»ñµÃ - SELECT Ëù·µ»ØµÄ¼Ç¼ÐÐÊý¡£ + SELECT Óï¾ä£»Ö»ÊÊÓÃÓÚÄܹ»Ð޸ļǼµÄÓï¾äÖС£ÇëʹÓà <function>mysql_num_rows</function> º¯ÊýÀ´»ñµÃ + SELECT Ëù·µ»ØµÄ¼Ç¼ÐÐÊý¡£ </para> <para> Èç¹û×î½üÒ»´Î²éѯʧ°ÜµÄ»°£¬º¯Êý·µ»Ø -1¡£ @@ -52,8 +51,8 @@ <?php /* Á¬½ÓÊý¾Ý¿â */ mysql_pconnect("localhost", "mysql_user", "mysql_password") or - die ("Could not connect" . mysql_error()); - mysql_select_db("mydb"); + die ("Could not connect" . mysql_error()); + mysql_select_db("mydb"); /* Õâ»á·µ»ØÓÐЧµÄ±»É¾³ý¼Ç¼Êý¡£ */ mysql_query("DELETE FROM mytable WHERE id < 10"); @@ -66,15 +65,17 @@ ]]> </programlisting> <para> - ÒÔÉϵÄÀý×Ó»áµÃ³öÏÂÃæµÄÔËÐнá¹û£º - <screen> + ÒÔÉϵÄÀý×Ó»áµÃ³öÏÂÃæµÄÔËÐнá¹û£º + </para> + <screen> <![CDATA[ Records deleted: 10 Records deleted: 0 ]]> - </screen> - </para> + </screen> </example> + </para> + <para> <example> <title>Update ²Ù×÷</title> <programlisting role="php"> @@ -82,7 +83,7 @@ <?php /* Á¬½ÓÊý¾Ý¿â */ mysql_pconnect("localhost", "mysql_user", "mysql_password") or - die ("Could not connect" . mysql_error()); + die ("Could not connect" . mysql_error()); mysql_select_db("mydb"); /* Update ¼Ç¼ */ @@ -93,18 +94,18 @@ ]]> </programlisting> <para> - ÒÔÉϵÄÀý×Ó»áµÃ³öÏÂÃæµÄÔËÐнá¹û£º - <screen> + ÒÔÉϵÄÀý×Ó»áµÃ³öÏÂÃæµÄÔËÐнá¹û£º + </para> + <screen> <![CDATA[ Updated Records: 10 ]]> - </screen> - </para> - </example> + </screen> + </example> </para> <para> - Ïà¹Øº¯Êý£º <function>mysql_num_rows</function>£¬ - <function>mysql_info</function>¡£ + ²Î¼û <function>mysql_num_rows</function> + ºÍ <function>mysql_info</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml:1.1 Tue Feb 25 04:12:50 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-client-encoding.xml Mon Aug 18 19:57:06 2003 @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> - <refentry id="function.mysql-character-set-name"> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> + <refentry id="function.mysql-client-encoding"> <refnamediv> <refname>mysql_client_encoding</refname> <refpurpose>·µ»Ø×Ö·û¼¯µÄÃû³Æ</refpurpose> @@ -16,6 +16,7 @@ <para> <function>mysql_client_encoding</function> ·µ»Øµ±Ç°Á¬½ÓµÄĬÈÏ×Ö·û¼¯Ãû³Æ¡£ </para> + <para> <example> <title><function>mysql_client_encoding</function> Àý×Ó</title> <programlisting role="php"> @@ -29,13 +30,14 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ current character set is latin1 ]]> - </screen> - </para> + </screen> </example> + </para> <para> ²Î¼û <function>mysql_real_escape_string</function>¡£ </para> Index: phpdoc-zh/reference/mysql/functions/mysql-close.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-close.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-close.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-close.xml:1.1 Tue Feb 25 04:12:50 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-close.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-close"> <refnamediv> <refname>mysql_close</refname> @@ -34,9 +34,10 @@ <function>mysql_pconnect</function> ½¨Á¢µÄ³Ö¾ÃÁ¬½Ó¡£ </para> </note> - <example> - <title>MySQL ¹Ø±ÕÀý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title>MySQL ¹Ø±ÕÀý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect("localhost", "mysql_user", "mysql_password") @@ -45,8 +46,9 @@ mysql_close($link); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_connect</function> ºÍ <function>mysql_pconnect</function>¡£ Index: phpdoc-zh/reference/mysql/functions/mysql-connect.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-connect.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-connect.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-connect.xml:1.1 Tue Feb 25 04:38:10 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-connect.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-connect"> <refnamediv> <refname>mysql_connect</refname> @@ -9,24 +9,14 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>mysql_connect</methodname> - <methodparam choice="opt"><type>string</type><parameter> - server - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - username - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - password - </parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter> - new_link - </parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - client_flags - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>mysql_connect</methodname> + <methodparam choice="opt"><type>string</type><parameter>server</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>new_link</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>client_flags</parameter></methodparam> + </methodsynopsis> <para> Èç¹û³É¹¦Ôò·µ»ØÒ»¸ö MySQL Á¬½Ó±êʶ£¬Ê§°ÜÔò·µ»Ø &false;¡£ </para> @@ -84,9 +74,10 @@ Ò»µ©½Å±¾½áÊø£¬µ½·þÎñÆ÷µÄÁ¬½Ó¾Í»á±»¹Ø±Õ¡£³ý·Ç֮ǰÒѾ­µ÷ÓÃÁË <function>mysql_close</function> À´¹Ø±ÕËü¡£ </para> - <example> - <title>MySQL Á¬½ÓÀý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title>MySQL Á¬½ÓÀý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect("localhost", "mysql_user", "mysql_password") @@ -95,8 +86,9 @@ mysql_close($link); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_pconnect</function> ºÍ <function>mysql_close</function>¡£ Index: phpdoc-zh/reference/mysql/functions/mysql-create-db.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-create-db.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-create-db.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-create-db.xml:1.2 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-create-db.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-create-db"> <refnamediv> <refname>mysql_create_db</refname> @@ -12,9 +12,7 @@ <methodsynopsis> <type>bool</type><methodname>mysql_create_db</methodname> <methodparam><type>string</type><parameter>database name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_create_db</function> ³¢ÊÔÔÚÖ¸¶¨µÄÁ¬½Ó±êʶËù¹ØÁªµÄ·þÎñÆ÷ÉϽ¨Á¢Ò»¸öÐÂÊý¾Ý¿â¡£ @@ -22,9 +20,10 @@ <para> &return.success; </para> - <example> - <title>MySQL н¨Êý¾Ý¿âÀý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title>MySQL н¨Êý¾Ý¿âÀý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $link = mysql_pconnect("localhost", "mysql_user", "mysql_password") @@ -37,8 +36,9 @@ } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ΪÏòϼæÈÝÒ²¿ÉÒÔÓà <function>mysql_createdb</function>£¬µ«²¢²»Ìᳫ¡£ </para> Index: phpdoc-zh/reference/mysql/functions/mysql-data-seek.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-data-seek.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-data-seek.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-data-seek.xml:1.1 Tue Feb 25 04:51:58 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-data-seek.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-data-seek"> <refnamediv> <refname>mysql_data_seek</refname> @@ -9,11 +9,11 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>mysql_data_seek</methodname> - <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> - <methodparam><type>int</type><parameter>row_number</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>mysql_data_seek</methodname> + <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> + <methodparam><type>int</type><parameter>row_number</parameter></methodparam> + </methodsynopsis> <para> &return.success; </para> @@ -33,9 +33,10 @@ <function>mysql_unbuffered_query</function>¡£ </para> </note> - <example> - <title>MySQL Êý¾Ý¼ìË÷Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title>MySQL Êý¾Ý¼ìË÷Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $link = mysql_pconnect("localhost", "mysql_user", "mysql_password") @@ -64,8 +65,9 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_query</function> ºÍ <function>mysql_num_rows</function>¡£ Index: phpdoc-zh/reference/mysql/functions/mysql-db-name.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-db-name.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-db-name.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-db-name.xml:1.1 Tue Feb 25 05:11:20 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-db-name.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.mysql-db-name"> <refnamediv> <refname>mysql_db_name</refname> @@ -13,9 +13,7 @@ <type>string</type><methodname>mysql_db_name</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter> - field - </parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>mysql_db_name</function> ½«µ÷Óà @@ -28,9 +26,10 @@ <function>mysql_errno</function> ºÍ <function>mysql_error</function> À´È·¶¨´íÎóµÄÖÖÀà¡£ </para> - <example> - <title><function>mysql_db_name</function> Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_db_name</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php error_reporting(E_ALL); @@ -46,8 +45,9 @@ } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ΪÏòϼæÈÝÒ²¿ÉÒÔÓà <function>mysql_dbname</function>¡£µ«²¢²»Ìᳫ¡£ </para> Index: phpdoc-zh/reference/mysql/functions/mysql-errno.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-errno.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-errno.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-errno.xml:1.2 Sat Mar 1 06:52:00 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-errno.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-errno"> <refnamediv> <refname>mysql_errno</refname> @@ -13,9 +13,7 @@ <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>mysql_errno</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÉÏÒ»¸ö MySQL º¯ÊýµÄ´íÎóºÅÂ룬Èç¹ûûÓгö´íÔò·µ»Ø @@ -27,6 +25,8 @@ MySQL º¯ÊýµÄÖ´ÐУ¨²»°üÀ¨ <function>mysql_error</function> ºÍ <function>mysql_errno</function>£©µÄ´íÎó´úÂ룬Òò´ËÈç¹ûҪʹÓô˺¯Êý£¬È·±£ÔÚµ÷ÓÃÁíÒ»¸ö MySQL º¯Êý֮ǰ¼ì²éËüµÄÖµ¡£ + </para> + <para> <example> <title><function>mysql_errno</function> Àý×Ó</title> <programlisting role="php"> @@ -46,12 +46,12 @@ <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> - <screen> + <screen> <![CDATA[ 1049: Unknown database 'nonexistentdb' 1146: Table 'kossu.nonexistenttable' doesn't exist ]]> - </screen> + </screen> </example> </para> <note> Index: phpdoc-zh/reference/mysql/functions/mysql-error.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-error.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-error.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-error.xml:1.1 Tue Feb 25 05:29:06 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-error.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-error"> <refnamediv> <refname>mysql_error</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_error</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_error</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> ·µ»ØÉÏÒ»¸ö MySQL º¯ÊýµÄ´íÎóÎı¾£¬Èç¹ûûÓгö´íÔò·µ»Ø <literal>''</literal>£¨¿Õ×Ö·û´®£©¡£ @@ -27,6 +25,8 @@ MySQL º¯ÊýµÄÖ´ÐУ¨²»°üÀ¨ <function>mysql_error</function> ºÍ <function>mysql_errno</function>£©µÄ´íÎóÎı¾£¬Òò´ËÈç¹ûҪʹÓô˺¯Êý£¬È·±£ÔÚµ÷ÓÃÁíÒ»¸ö MySQL º¯Êý֮ǰ¼ì²éËüµÄÖµ¡£ + </para> + <para> <example> <title>mysql_error Àý×Ó</title> <programlisting role="php"> @@ -46,12 +46,12 @@ <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> - <screen> + <screen> <![CDATA[ 1049: Unknown database 'nonexistentdb' 1146: Table 'kossu.nonexistenttable' doesn't exist ]]> - </screen> + </screen> </example> </para> <note> Index: phpdoc-zh/reference/mysql/functions/mysql-escape-string.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-escape-string.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-escape-string.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-escape-string.xml:1.1 Wed Feb 26 02:51:37 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-escape-string.xml Mon Aug 18 19:57:06 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-escape-string"> <refnamediv> <refname>mysql_escape_string</refname> @@ -32,9 +32,10 @@ ²¢²»½ÓÊÜÁ¬½Ó²ÎÊý£¬Ò²²»¹Üµ±Ç°×Ö·û¼¯É趨¡£ </simpara> </note> - <example> - <title><function>mysql_escape_string</function> Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_escape_string</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $item = "Zak's Laptop"; @@ -42,16 +43,17 @@ printf ("Escaped string: %s\n", $escaped_item); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> <screen> <![CDATA[ Escaped string: Zak\'s Laptop ]]> </screen> - </para> - </example> + </example> + </para> <para> ²Î¼û <function>mysql_real_escape_string</function>£¬<function>addslashes</function>
« previous php.doc.zh (#1639) next »