cvs: phpdoc-zh /reference/mysql/functions mysql-fetch-lengths.xml mysql-fetch-object.xml mysql-fetch-row.xml
| From: | Dallas Thunder | Date: | Wed, 26 Feb 2003 08:47:08 +0000 |
| Subject: | cvs: phpdoc-zh /reference/mysql/functions mysql-fetch-lengths.xml mysql-fetch-object.xml mysql-fetch-row.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1143@lists.php.net to get a copy of this message | ||
dallas Wed Feb 26 03:47:08 2003 EDT
Added files:
/phpdoc-zh/reference/mysql/functions mysql-fetch-lengths.xml
mysql-fetch-object.xml
mysql-fetch-row.xml
Log:
Completed 1.2
Index: phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-fetch-lengths.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-fetch-lengths">
<refnamediv>
<refname>mysql_fetch_lengths</refname>
<refpurpose>
È¡µÃ½á¹û¼¯ÖÐÿ¸öÊä³öµÄ³¤¶È
</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>array</type><methodname>mysql_fetch_lengths</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
ÒÔÊý×é·µ»ØÉÏÒ»´ÎÓÃ
<function>mysql_fetch_row</function>
È¡µÃµÄÐÐÖÐÿ¸ö×ֶεij¤¶È£¬Èç¹û³ö´í·µ»Ø &false;¡£
</para>
<para>
<function>mysql_fetch_lengths</function> ½«ÉÏÒ»´Î
<function>mysql_fetch_row</function>£¬<function>mysql_fetch_array</function>
ºÍ <function>mysql_fetch_object</function>
Ëù·µ»ØµÄÿ¸öÁеij¤¶È´¢´æµ½Ò»¸öÊý×éÖУ¬Æ«ÒÆÁ¿´Ó 0
¿ªÊ¼¡£
</para>
<para>
²Î¼û <function>mysql_fetch_row</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-fetch-object.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-fetch-object.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-fetch-object">
<refnamediv>
<refname>mysql_fetch_object</refname>
<refpurpose>´Ó½á¹û¼¯ÖÐÈ¡µÃÒ»ÐÐ×÷Ϊ¶ÔÏó</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>object</type><methodname>mysql_fetch_object</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
·µ»Ø¸ù¾ÝËùÈ¡µÃµÄÐÐÉú³ÉµÄ¶ÔÏó£¬Èç¹ûûÓиü¶àÐÐÔò·µ»Ø
&false;¡£
</para>
<para>
<function>mysql_fetch_object</function> ºÍ
<function>mysql_fetch_array</function>
ÀàËÆ£¬Ö»ÓÐÒ»µãÇø±ð -
·µ»ØÒ»¸ö¶ÔÏó¶ø²»ÊÇÊý×é¡£¼ä½ÓµØÒ²Òâζ×ÅÖ»ÄÜͨ¹ý×Ö¶ÎÃûÀ´·ÃÎÊÊý×飬¶ø²»ÊÇÆ«ÒÆÁ¿£¨Êý×ÖÊǺϷ¨µÄÊôÐÔÃû£©¡£
</para>
<para>
<programlisting role="php">
<![CDATA[
<?php
/* this is valid */
echo $row->field;
/* this is invalid */
echo $row->0;
?>
]]>
</programlisting>
</para>
<para>
ËÙ¶ÈÉÏ£¬±¾º¯ÊýºÍ
<function>mysql_fetch_array</function> Ò»Ñù£¬Ò²¼¸ºõºÍ
<function>mysql_fetch_row</function>
Ò»Ñù¿ì£¨²î±ðºÜ²»Ã÷ÏÔ£©¡£
<example>
<title><function>mysql_fetch_object</function> Àý×Ó</title>
<programlisting role="php">
<![CDATA[
<?php
mysql_connect("hostname", "user", "password");
mysql_select_db($db);
$result = mysql_query("select * from table");
while ($row = mysql_fetch_object($result)) {
echo $row->user_id;
echo $row->fullname;
}
mysql_free_result($result);
?>
]]>
</programlisting>
</example>
</para>
<para>
²Î¼û <function>mysql_fetch_array</function> ºÍ
<function>mysql_fetch_row</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-fetch-row.xml
+++ phpdoc-zh/reference/mysql/functions/mysql-fetch-row.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
<refentry id="function.mysql-fetch-row">
<refnamediv>
<refname>mysql_fetch_row</refname>
<refpurpose>´Ó½á¹û¼¯ÖÐÈ¡µÃÒ»ÐÐ×÷Ϊö¾ÙÊý×é</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>array</type><methodname>mysql_fetch_row</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
·µ»Ø¸ù¾ÝËùÈ¡µÃµÄÐÐÉú³ÉµÄÊý×飬Èç¹ûûÓиü¶àÐÐÔò·µ»Ø
&false;¡£
</para>
<para>
<function>mysql_fetch_row</function>
´ÓºÍÖ¸¶¨µÄ½á¹û±êʶ¹ØÁªµÄ½á¹û¼¯ÖÐÈ¡µÃÒ»ÐÐÊý¾Ý²¢×÷ΪÊý×é·µ»Ø¡£Ã¿¸ö½á¹ûµÄÁд¢´æÔÚÒ»¸öÊý×éµÄµ¥ÔªÖУ¬Æ«ÒÆÁ¿´Ó
0 ¿ªÊ¼¡£
</para>
<para>
ÒÀ´Îµ÷Óà <function>mysql_fetch_row</function>
½«·µ»Ø½á¹û¼¯ÖеÄÏÂÒ»ÐУ¬Èç¹ûûÓиü¶àÐÐÔò·µ»Ø
&false;¡£
</para>
<para>
²Î¼û
<function>mysql_fetch_array</function>£¬<function>mysql_fetch_object</function>£¬<function>mysql_data_seek</function>£¬<function>mysql_fetch_lengths</function>
ºÍ
<function>mysql_result</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
-->