cvs: phpdoc-zh /reference/mysql/functions mysql-fetch-array.xml mysql-fetch-assoc.xml mysql-fetch-field.xml mysql-fetch-lengths.xml
mysql-fetch-object.xml mysql-fetch-row.xml mysql-field-name.xml mysql-field-seek.xml mysql-field-type.xml mysql-get-client-info.xml
mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml mysql-insert-id.xml
| From: | Dallas Thunder | Date: | Tue, 19 Aug 2003 00:14:21 +0000 |
| Subject: | cvs: phpdoc-zh /reference/mysql/functions mysql-fetch-array.xml mysql-fetch-assoc.xml mysql-fetch-field.xml mysql-fetch-lengths.xml mysql-fetch-object.xml mysql-fetch-row.xml mysql-field-name.xml mysql-field-seek.xml mysql-field-type.xml mysql-get-client-info.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml mysql-insert-id.xml |
||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1640@lists.php.net to get a copy of this message | ||
dallas Mon Aug 18 20:14:21 2003 EDT
Modified files:
/phpdoc-zh/reference/mysql/functions mysql-fetch-array.xml
mysql-fetch-assoc.xml
mysql-fetch-field.xml
mysql-fetch-lengths.xml
mysql-fetch-object.xml
mysql-fetch-row.xml
mysql-field-name.xml
mysql-field-seek.xml
mysql-field-type.xml
mysql-get-client-info.xml
mysql-get-host-info.xml
mysql-get-proto-info.xml
mysql-get-server-info.xml
mysql-info.xml
mysql-insert-id.xml
Log:
Updated.
Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.4 phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.5 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.4 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-array"> <refnamediv> <refname>mysql_fetch_array</refname> @@ -59,9 +59,11 @@ MYSQL_NUM Ö»µÃµ½Êý×ÖË÷Òý£¨Èçͬ <function>mysql_fetch_row</function> ÄÇÑù£©¡£ </para> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_NUM</title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_NUM</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -71,17 +73,19 @@ $result = mysql_query("SELECT id, name FROM mytable"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { - printf ("ID: %s Name: %s", $row[0], $row[1]); + printf ("ID: %s Name: %s", $row[0], $row[1]); } mysql_free_result($result); ?> ]]> - </programlisting> - </example> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_ASSOC</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_ASSOC</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -97,11 +101,13 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_BOTH</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_BOTH</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -117,8 +123,9 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_fetch_row</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.1 Wed Feb 26 03:31:22 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml Mon Aug 18 20:14:20 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.8 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-assoc"> <refnamediv> <refname>mysql_fetch_assoc</refname> @@ -39,25 +39,27 @@ <function>mysql_fetch_row</function> Âý£¬¶øÇÒ»¹ÌṩÁËÃ÷ÏÔ¸ü¶àµÄÖµ¡£ </para> - <example> - <title>À©Õ¹µÄ <function>mysql_fetch_assoc</function> Àý×Ó</title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title>À©Õ¹µÄ <function>mysql_fetch_assoc</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $conn = mysql_connect("localhost", "mysql_user", "mysql_password"); - + if (!$conn) { echo "Unable to connect to DB: " . mysql_error(); exit; } - + if (!mysql_select_db("mydbname")) { echo "Unable to select mydbname: " . mysql_error(); exit; } - - $sql = "SELECT id as userid, fullname, userstatus + + $sql = "SELECT id as userid, fullname, userstatus FROM sometable WHERE userstatus = 1"; @@ -67,7 +69,7 @@ echo "Could not successfully run query ($sql) from DB: " . mysql_error(); exit; } - + if (mysql_num_rows($result) == 0) { echo "No rows found, nothing to print so am exiting"; exit; @@ -82,15 +84,16 @@ echo $row["fullname"]; echo $row["userstatus"]; } - + mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> - ²Î¼û + ²Î¼û <function>mysql_fetch_row</function>£¬<function>mysql_fetch_array</function>£¬<function>mysql_query</function> ºÍ <function>mysql_error</function>¡£ </para> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.1 Wed Feb 26 03:31:23 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-field"> <refnamediv> <refname>mysql_fetch_field</refname> @@ -14,9 +14,7 @@ <methodsynopsis> <type>object</type><methodname>mysql_fetch_field</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - field_offset - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>field_offset</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÒ»¸ö°üº¬×Ö¶ÎÐÅÏ¢µÄ¶ÔÏó¡£ @@ -91,9 +89,11 @@ </listitem> </itemizedlist> </para> - <example> - <title><function>mysql_fetch_field</function></title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title><function>mysql_fetch_field</function></title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect('localhost:3306', $user, $password) @@ -128,10 +128,11 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> - ²Î¼ûo <function>mysql_field_seek</function>¡£ + ²Î¼û <function>mysql_field_seek</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.1 Wed Feb 26 03:47:06 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml Mon Aug 18 20:14:20 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-fetch-lengths"> <refnamediv> <refname>mysql_fetch_lengths</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.1 Wed Feb 26 03:47:07 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml Mon Aug 18 20:14:20 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.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-object"> <refnamediv> <refname>mysql_fetch_object</refname> @@ -21,6 +21,7 @@ <function>mysql_fetch_array</function> ÀàËÆ£¬Ö»ÓÐÒ»µãÇø±ð - ·µ»ØÒ»¸ö¶ÔÏó¶ø²»ÊÇÊý×é¡£¼ä½ÓµØÒ²Òâζ×ÅÖ»ÄÜͨ¹ý×Ö¶ÎÃûÀ´·ÃÎÊÊý×飬¶ø²»ÊÇÆ«ÒÆÁ¿£¨Êý×ÖÊǺϷ¨µÄÊôÐÔÃû£©¡£ </para> + &database.field-case; <para> <programlisting role="php"> <![CDATA[ @@ -45,8 +46,8 @@ <![CDATA[ <?php mysql_connect("hostname", "user", "password"); -mysql_select_db($db); -$result = mysql_query("select * from table"); +mysql_select_db("mydb"); +$result = mysql_query("select * from mytable"); while ($row = mysql_fetch_object($result)) { echo $row->user_id; echo $row->fullname; @@ -58,8 +59,8 @@ </example> </para> <para> - ²Î¼û <function>mysql_fetch_array</function> ºÍ - <function>mysql_fetch_row</function>¡£ + ²Î¼û <function>mysql_fetch_array</function>£¬<function>mysql_fetch_assoc</function> + ºÍ <function>mysql_fetch_row</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.1 Wed Feb 26 03:47:07 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml Mon Aug 18 20:14:20 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.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-row"> <refnamediv> <refname>mysql_fetch_row</refname> @@ -24,8 +24,9 @@ ÒÀ´Îµ÷Óà <function>mysql_fetch_row</function> ½«·µ»Ø½á¹û¼¯ÖеÄÏÂÒ»ÐУ¬Èç¹ûûÓиü¶àÐÐÔò·µ»Ø &false;¡£ </para> + &database.field-case; <para> - ²Î¼û <function>mysql_fetch_array</function>£¬<function>mysql_fetch_object</function>£¬<function>mysql_data_seek</function>£¬<function>mysql_fetch_lengths</function> ºÍ + ²Î¼û <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> ºÍ <function>mysql_result</function>¡£ </para> </refsect1> Index: phpdoc-zh/reference/mysql/functions/mysql-field-name.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-name.xml Mon Aug 18 20:14:20 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.8 Maintainer: dallas Status: ready --> <refentry id="function.mysql-field-name"> <refnamediv> <refname>mysql_field_name</refname> @@ -11,11 +11,11 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_field_name</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_index</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_field_name</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_index</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_field_name</function> ·µ»ØÖ¸¶¨×Ö¶ÎË÷ÒýµÄ×Ö¶ÎÃû¡£<parameter>result</parameter> @@ -30,34 +30,38 @@ ÀýÈ磬µÚÈý¸ö×ֶεÄË÷ÒýÖµÆäʵÊÇ 2£¬µÚËĸö×ֶεÄË÷ÒýÖµÊÇ 3£¬ÒÔ´ËÀàÍÆ¡£ </para> </note> + &database.field-case; <para> <example> <title><function>mysql_field_name</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ +<?php /* The users table consists of three fields: * user_id * username * password. */ $link = mysql_connect('localhost', "mysql_user", "mysql_password"); +$dbname = "mydb"; mysql_select_db($dbname, $link) or die("Could not set $dbname: " . mysql_error()); $res = mysql_query("select * from users", $link); echo mysql_field_name($res, 0) . "\n"; echo mysql_field_name($res, 2); +?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ user_id password ]]> - </screen> - </para> + </screen> </example> </para> <para> Index: phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml Mon Aug 18 20:14:20 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-field-seek"> <refnamediv> <refname>mysql_field_seek</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-field-type.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-type.xml Mon Aug 18 20:14:20 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-field-type"> <refnamediv> <refname>mysql_field_type</refname> @@ -22,7 +22,7 @@ º¯ÊýÏàËÆ¡£²ÎÊýÍêÈ«Ïàͬ£¬µ«·µ»ØµÄÊÇ×Ö¶ÎÀàÐͶø²»ÊÇ×Ö¶ÎÃû¡£×Ö¶ÎÀàÐÍÓС°int¡±£¬¡°real¡±£¬¡°string¡±£¬¡°blob¡±ÒÔ¼°ÆäËü£¬Ïê¼û <ulink url="&url.mysql.docs;">MySQL ÊÖ²á</ulink>¡£ <example> - <title>MySQL ×Ö¶ÎÀàÐÍ</title> + <title><function>mysql_field_type</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php Index: phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml Mon Aug 18 20:14:20 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-get-client-info"> <refnamediv> <refname>mysql_get_client_info</refname> @@ -16,24 +16,26 @@ <para> <function>mysql_get_client_info</function> ·µ»ØÒ»¸ö×Ö·û´®Ö¸³öÁ˿ͻ§¶Ë¿âµÄ°æ±¾¡£ </para> - <example> - <title>mysql_get_client_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_client_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php printf ("MySQL client info: %s\n", mysql_get_client_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL client info: 3.23.39 ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_host_info</function>£¬<function>mysql_get_proto_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml Mon Aug 18 20:14:20 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-get-host-info"> <refnamediv> <refname>mysql_get_host_info</refname> @@ -19,9 +19,10 @@ ËùʹÓõÄÁ¬½Ó·½Ê½£¬°üÀ¨·þÎñÆ÷µÄÖ÷»úÃû¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_host_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_host_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL host info: %s\n", mysql_get_host_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL host info: Localhost via UNIX socket ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_proto_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml Mon Aug 18 20:14:20 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-get-proto-info"> <refnamediv> <refname>mysql_get_proto_info</refname> @@ -9,19 +9,20 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>int</type><methodname>mysql_get_proto_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>mysql_get_proto_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_get_proto_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõÄÐÒé°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_proto_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_proto_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL protocol version: %s\n", mysql_get_proto_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL protocol version: 10 ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml Mon Aug 18 20:14:20 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-get-server-info"> <refnamediv> <refname>mysql_get_server_info</refname> @@ -9,19 +9,20 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_get_server_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_get_server_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_get_server_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõķþÎñÆ÷°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_server_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_server_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL server version: %s\n", mysql_get_server_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL server version: 4.0.1-alpha ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.2 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-info.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_info</function> ·µ»ØÍ¨¹ý¸ø¶¨µÄ @@ -33,18 +31,18 @@ <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... -×Ö·û´®¸ñʽ£ºRecords: 23 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... -×Ö·û´®¸ñʽ£ºRecords: 37 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... -×Ö·û´®¸ñʽ£ºRecords: 42 Deleted: 0 Skipped: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE -×Ö·û´®¸ñʽ£ºRecords: 60 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 60 Duplicates: 0 Warnings: 0 UPDATE ×Ö·û´®¸ñʽ£ºRows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> - </example> + </example> ÉÏÀýÖеÄÊý×ÖÖ»ÊÇΪÁËÑÝʾµÄÄ¿µÄ£¬Êµ¼ÊµÄֵȡ¾öÓÚ²éѯ¡£ </para> <note> Index: phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.1 Sat Mar 1 07:18:32 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml Mon Aug 18 20:14:20 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-insert-id"> <refnamediv> <refname>mysql_insert_id</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>int</type><methodname>mysql_insert_id</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>mysql_insert_id</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_insert_id</function> ·µ»Ø¸ø¶¨µÄ @@ -53,9 +51,10 @@ <literal>LAST_INSERT_ID()</literal> À´Ìæ´ú¡£ </para> </warning> - <example> - <title>mysql_insert_id Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_insert_id</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -66,8 +65,9 @@ printf ("Last inserted record has id %d\n", mysql_insert_id()); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_query</function>¡£ </para>
Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.4 phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.5 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml:1.4 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-array.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-array"> <refnamediv> <refname>mysql_fetch_array</refname> @@ -59,9 +59,11 @@ MYSQL_NUM Ö»µÃµ½Êý×ÖË÷Òý£¨Èçͬ <function>mysql_fetch_row</function> ÄÇÑù£©¡£ </para> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_NUM</title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_NUM</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -71,17 +73,19 @@ $result = mysql_query("SELECT id, name FROM mytable"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { - printf ("ID: %s Name: %s", $row[0], $row[1]); + printf ("ID: %s Name: %s", $row[0], $row[1]); } mysql_free_result($result); ?> ]]> - </programlisting> - </example> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_ASSOC</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_ASSOC</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -97,11 +101,13 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> - <example> - <title>mysql_fetch_array ʹÓà MYSQL_BOTH</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>mysql_fetch_array ʹÓà MYSQL_BOTH</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -117,8 +123,9 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_fetch_row</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml:1.1 Wed Feb 26 03:31:22 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-assoc.xml Mon Aug 18 20:14:20 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.8 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-assoc"> <refnamediv> <refname>mysql_fetch_assoc</refname> @@ -39,25 +39,27 @@ <function>mysql_fetch_row</function> Âý£¬¶øÇÒ»¹ÌṩÁËÃ÷ÏÔ¸ü¶àµÄÖµ¡£ </para> - <example> - <title>À©Õ¹µÄ <function>mysql_fetch_assoc</function> Àý×Ó</title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title>À©Õ¹µÄ <function>mysql_fetch_assoc</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $conn = mysql_connect("localhost", "mysql_user", "mysql_password"); - + if (!$conn) { echo "Unable to connect to DB: " . mysql_error(); exit; } - + if (!mysql_select_db("mydbname")) { echo "Unable to select mydbname: " . mysql_error(); exit; } - - $sql = "SELECT id as userid, fullname, userstatus + + $sql = "SELECT id as userid, fullname, userstatus FROM sometable WHERE userstatus = 1"; @@ -67,7 +69,7 @@ echo "Could not successfully run query ($sql) from DB: " . mysql_error(); exit; } - + if (mysql_num_rows($result) == 0) { echo "No rows found, nothing to print so am exiting"; exit; @@ -82,15 +84,16 @@ echo $row["fullname"]; echo $row["userstatus"]; } - + mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> - ²Î¼û + ²Î¼û <function>mysql_fetch_row</function>£¬<function>mysql_fetch_array</function>£¬<function>mysql_query</function> ºÍ <function>mysql_error</function>¡£ </para> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml:1.1 Wed Feb 26 03:31:23 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-field.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-field"> <refnamediv> <refname>mysql_fetch_field</refname> @@ -14,9 +14,7 @@ <methodsynopsis> <type>object</type><methodname>mysql_fetch_field</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - field_offset - </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>field_offset</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÒ»¸ö°üº¬×Ö¶ÎÐÅÏ¢µÄ¶ÔÏó¡£ @@ -91,9 +89,11 @@ </listitem> </itemizedlist> </para> - <example> - <title><function>mysql_fetch_field</function></title> - <programlisting role="php"> + &database.field-case; + <para> + <example> + <title><function>mysql_fetch_field</function></title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect('localhost:3306', $user, $password) @@ -128,10 +128,11 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> - ²Î¼ûo <function>mysql_field_seek</function>¡£ + ²Î¼û <function>mysql_field_seek</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml:1.1 Wed Feb 26 03:47:06 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml Mon Aug 18 20:14:20 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-fetch-lengths"> <refnamediv> <refname>mysql_fetch_lengths</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml:1.1 Wed Feb 26 03:47:07 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml Mon Aug 18 20:14:20 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.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-object"> <refnamediv> <refname>mysql_fetch_object</refname> @@ -21,6 +21,7 @@ <function>mysql_fetch_array</function> ÀàËÆ£¬Ö»ÓÐÒ»µãÇø±ð - ·µ»ØÒ»¸ö¶ÔÏó¶ø²»ÊÇÊý×é¡£¼ä½ÓµØÒ²Òâζ×ÅÖ»ÄÜͨ¹ý×Ö¶ÎÃûÀ´·ÃÎÊÊý×飬¶ø²»ÊÇÆ«ÒÆÁ¿£¨Êý×ÖÊǺϷ¨µÄÊôÐÔÃû£©¡£ </para> + &database.field-case; <para> <programlisting role="php"> <![CDATA[ @@ -45,8 +46,8 @@ <![CDATA[ <?php mysql_connect("hostname", "user", "password"); -mysql_select_db($db); -$result = mysql_query("select * from table"); +mysql_select_db("mydb"); +$result = mysql_query("select * from mytable"); while ($row = mysql_fetch_object($result)) { echo $row->user_id; echo $row->fullname; @@ -58,8 +59,8 @@ </example> </para> <para> - ²Î¼û <function>mysql_fetch_array</function> ºÍ - <function>mysql_fetch_row</function>¡£ + ²Î¼û <function>mysql_fetch_array</function>£¬<function>mysql_fetch_assoc</function> + ºÍ <function>mysql_fetch_row</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml:1.1 Wed Feb 26 03:47:07 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml Mon Aug 18 20:14:20 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.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-fetch-row"> <refnamediv> <refname>mysql_fetch_row</refname> @@ -24,8 +24,9 @@ ÒÀ´Îµ÷Óà <function>mysql_fetch_row</function> ½«·µ»Ø½á¹û¼¯ÖеÄÏÂÒ»ÐУ¬Èç¹ûûÓиü¶àÐÐÔò·µ»Ø &false;¡£ </para> + &database.field-case; <para> - ²Î¼û <function>mysql_fetch_array</function>£¬<function>mysql_fetch_object</function>£¬<function>mysql_data_seek</function>£¬<function>mysql_fetch_lengths</function> ºÍ + ²Î¼û <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> ºÍ <function>mysql_result</function>¡£ </para> </refsect1> Index: phpdoc-zh/reference/mysql/functions/mysql-field-name.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-name.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-name.xml Mon Aug 18 20:14:20 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.8 Maintainer: dallas Status: ready --> <refentry id="function.mysql-field-name"> <refnamediv> <refname>mysql_field_name</refname> @@ -11,11 +11,11 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_field_name</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>field_index</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_field_name</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>field_index</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_field_name</function> ·µ»ØÖ¸¶¨×Ö¶ÎË÷ÒýµÄ×Ö¶ÎÃû¡£<parameter>result</parameter> @@ -30,34 +30,38 @@ ÀýÈ磬µÚÈý¸ö×ֶεÄË÷ÒýÖµÆäʵÊÇ 2£¬µÚËĸö×ֶεÄË÷ÒýÖµÊÇ 3£¬ÒÔ´ËÀàÍÆ¡£ </para> </note> + &database.field-case; <para> <example> <title><function>mysql_field_name</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ +<?php /* The users table consists of three fields: * user_id * username * password. */ $link = mysql_connect('localhost', "mysql_user", "mysql_password"); +$dbname = "mydb"; mysql_select_db($dbname, $link) or die("Could not set $dbname: " . mysql_error()); $res = mysql_query("select * from users", $link); echo mysql_field_name($res, 0) . "\n"; echo mysql_field_name($res, 2); +?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ user_id password ]]> - </screen> - </para> + </screen> </example> </para> <para> Index: phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-seek.xml Mon Aug 18 20:14:20 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-field-seek"> <refnamediv> <refname>mysql_field_seek</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-field-type.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-field-type.xml:1.1 Fri Feb 28 02:33:08 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-field-type.xml Mon Aug 18 20:14:20 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-field-type"> <refnamediv> <refname>mysql_field_type</refname> @@ -22,7 +22,7 @@ º¯ÊýÏàËÆ¡£²ÎÊýÍêÈ«Ïàͬ£¬µ«·µ»ØµÄÊÇ×Ö¶ÎÀàÐͶø²»ÊÇ×Ö¶ÎÃû¡£×Ö¶ÎÀàÐÍÓС°int¡±£¬¡°real¡±£¬¡°string¡±£¬¡°blob¡±ÒÔ¼°ÆäËü£¬Ïê¼û <ulink url="&url.mysql.docs;">MySQL ÊÖ²á</ulink>¡£ <example> - <title>MySQL ×Ö¶ÎÀàÐÍ</title> + <title><function>mysql_field_type</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php Index: phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml Mon Aug 18 20:14:20 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-get-client-info"> <refnamediv> <refname>mysql_get_client_info</refname> @@ -16,24 +16,26 @@ <para> <function>mysql_get_client_info</function> ·µ»ØÒ»¸ö×Ö·û´®Ö¸³öÁ˿ͻ§¶Ë¿âµÄ°æ±¾¡£ </para> - <example> - <title>mysql_get_client_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_client_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php printf ("MySQL client info: %s\n", mysql_get_client_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL client info: 3.23.39 ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_host_info</function>£¬<function>mysql_get_proto_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml Mon Aug 18 20:14:20 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-get-host-info"> <refnamediv> <refname>mysql_get_host_info</refname> @@ -19,9 +19,10 @@ ËùʹÓõÄÁ¬½Ó·½Ê½£¬°üÀ¨·þÎñÆ÷µÄÖ÷»úÃû¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_host_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_host_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL host info: %s\n", mysql_get_host_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL host info: Localhost via UNIX socket ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_proto_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml Mon Aug 18 20:14:20 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-get-proto-info"> <refnamediv> <refname>mysql_get_proto_info</refname> @@ -9,19 +9,20 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>int</type><methodname>mysql_get_proto_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>mysql_get_proto_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_get_proto_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõÄÐÒé°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_proto_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_proto_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL protocol version: %s\n", mysql_get_proto_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL protocol version: 10 ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml:1.1 Fri Feb 28 02:58:40 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml Mon Aug 18 20:14:20 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-get-server-info"> <refnamediv> <refname>mysql_get_server_info</refname> @@ -9,19 +9,20 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_get_server_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_get_server_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_get_server_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõķþÎñÆ÷°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> - <example> - <title>mysql_get_server_info Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_get_server_info</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -29,16 +30,17 @@ printf ("MySQL server version: %s\n", mysql_get_server_info()); ?> ]]> - </programlisting> - <para> - ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - </para> - <screen> + </programlisting> + <para> + ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º + </para> + <screen> <![CDATA[ MySQL server version: 4.0.1-alpha ]]> - </screen> - </example> + </screen> + </example> + </para> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-info.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-info.xml:1.2 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-info.xml Mon Aug 18 20:14:20 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_info</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_info</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_info</function> ·µ»ØÍ¨¹ý¸ø¶¨µÄ @@ -33,18 +31,18 @@ <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... -×Ö·û´®¸ñʽ£ºRecords: 23 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... -×Ö·û´®¸ñʽ£ºRecords: 37 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... -×Ö·û´®¸ñʽ£ºRecords: 42 Deleted: 0 Skipped: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE -×Ö·û´®¸ñʽ£ºRecords: 60 Duplicates: 0 Warnings: 0 +×Ö·û´®¸ñʽ£ºRecords: 60 Duplicates: 0 Warnings: 0 UPDATE ×Ö·û´®¸ñʽ£ºRows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> - </example> + </example> ÉÏÀýÖеÄÊý×ÖÖ»ÊÇΪÁËÑÝʾµÄÄ¿µÄ£¬Êµ¼ÊµÄֵȡ¾öÓÚ²éѯ¡£ </para> <note> Index: phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml:1.1 Sat Mar 1 07:18:32 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-insert-id.xml Mon Aug 18 20:14:20 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-insert-id"> <refnamediv> <refname>mysql_insert_id</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>int</type><methodname>mysql_insert_id</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>mysql_insert_id</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_insert_id</function> ·µ»Ø¸ø¶¨µÄ @@ -53,9 +51,10 @@ <literal>LAST_INSERT_ID()</literal> À´Ìæ´ú¡£ </para> </warning> - <example> - <title>mysql_insert_id Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_insert_id</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or @@ -66,8 +65,9 @@ printf ("Last inserted record has id %d\n", mysql_insert_id()); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_query</function>¡£ </para>