cvs: phpdoc-zh /reference/mysql/functions mysql-num-fields.xml mysql-num-rows.xml
| From: | Dallas Thunder | Date: | Sat, 01 Mar 2003 12:27:36 +0000 |
| Subject: | cvs: phpdoc-zh /reference/mysql/functions mysql-num-fields.xml mysql-num-rows.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1154@lists.php.net to get a copy of this message | ||
dallas Sat Mar 1 07:27:36 2003 EDT
Added files:
/phpdoc-zh/reference/mysql/functions mysql-num-fields.xml
mysql-num-rows.xml
Log:
Completed.
Index: phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-num-fields">
<refnamediv>
<refname>mysql_num_fields</refname>
<refpurpose>È¡µÃ½á¹û¼¯ÖÐ×ֶεÄÊýÄ¿</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>int</type><methodname>mysql_num_fields</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_num_fields</function>
·µ»Ø½á¹û¼¯ÖÐ×ֶεÄÊýÄ¿¡£
</para>
<para>
²Î¼û
<function>mysql_select_db</function>£¬<function>mysql_query</function>£¬<function>mysql_fetch_field</function>
ºÍ
<function>mysql_num_rows</function>¡£
</para>
<para>
ΪÏòϼæÈÝÈÔÈ»¿ÉÒÔʹÓÃ
<function>mysql_numfields</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-num-rows.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-num-rows">
<refnamediv>
<refname>mysql_num_rows</refname>
<refpurpose>È¡µÃ½á¹û¼¯ÖÐÐеÄÊýÄ¿</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>int</type><methodname>mysql_num_rows</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_num_rows</function>
·µ»Ø½á¹û¼¯ÖÐÐеÄÊýÄ¿¡£´ËÃüÁî½ö¶Ô
SELECT Óï¾äÓÐЧ¡£ÒªÈ¡µÃ±»
INSERT£¬UPDATE »òÕß
DELETE ²éѯËùÓ°Ïìµ½µÄÐеÄÊýÄ¿£¬ÓÃ
<function>mysql_affected_rows</function>¡£
<example>
<title><function>mysql_num_rows</function> Àý×Ó</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("database", $link);
$result = mysql_query("SELECT * FROM table1", $link);
$num_rows = mysql_num_rows($result);
echo "$num_rows Rows\n";
?>
]]>
</programlisting>
</example>
</para>
<note>
<para>
Èç¹ûʹÓÃ
<function>mysql_unbuffered_query</function>£¬ÔòÖ±µ½½á¹û¼¯ÖеÄËùÓÐÐж¼±»ÌáÈ¡ºó
<function>mysql_num_rows</function>
²ÅÄÜ·µ»ØÕýÈ·µÄÖµ¡£
</para>
</note>
<para>
²Î¼û
<function>mysql_affected_rows</function>£¬<function>mysql_connect</function>£¬<function>mysql_data_seek</function>£¬<function>mysql_select_db</function>
ºÍ
<function>mysql_query</function>¡£
</para>
<para>
ΪÏòϼæÈÝÈÔÈ»¿ÉÒÔʹÓÃ
<function>mysql_numrows</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
-->