cvs: phpdoc-zh /reference/pgsql/functions pg-fetch-array.xml pg-set-client-encoding.xml
| From: | Xiao shengwen | Date: | Thu, 24 Jul 2003 08:07:30 +0000 |
| Subject: | cvs: phpdoc-zh /reference/pgsql/functions pg-fetch-array.xml pg-set-client-encoding.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1591@lists.php.net to get a copy of this message | ||
yincheng Thu Jul 24 04:07:30 2003 EDT
Modified files:
/phpdoc-zh/reference/pgsql/functions pg-fetch-array.xml
pg-set-client-encoding.xml
Log:
ok
Index: phpdoc-zh/reference/pgsql/functions/pg-fetch-array.xml
diff -u phpdoc-zh/reference/pgsql/functions/pg-fetch-array.xml:1.4
phpdoc-zh/reference/pgsql/functions/pg-fetch-array.xml:1.5
--- phpdoc-zh/reference/pgsql/functions/pg-fetch-array.xml:1.4 Fri Feb 28 01:35:11 2003
+++ phpdoc-zh/reference/pgsql/functions/pg-fetch-array.xml Thu Jul 24 04:07:29 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.4 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- $Author: yincheng $ -->
+<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready -->
<refentry id="function.pg-fetch-array">
<refnamediv>
<refname>pg_fetch_array</refname>
@@ -45,40 +45,42 @@
</para>
<para>
<example>
- <title>PostgreSQL fetch array</title>
+ <title><function>pg_fetch_array</function></title>
<programlisting role="php">
<![CDATA[
<?php
-$conn = pg_pconnect ("dbname=publisher");
+
+$conn = pg_pconnect("dbname=publisher");
if (!$conn) {
echo "An error occured.\n";
exit;
}
-$result = pg_query ($conn, "SELECT * FROM authors");
+$result = pg_query($conn, "SELECT * FROM authors");
if (!$result) {
echo "An error occured.\n";
exit;
}
-$arr = pg_fetch_array ($result, 0, PGSQL_NUM);
+$arr = pg_fetch_array($result, 0, PGSQL_NUM);
echo $arr[0] . " <- array\n";
-$arr = pg_fetch_array ($result, 1, PGSQL_ASSOC);
+$arr = pg_fetch_array($result, 1, PGSQL_ASSOC);
echo $arr["author"] . " <- array\n";
+
?>
]]>
</programlisting>
</example>
</para>
- <para>
- ²Î¼û <function>pg_fetch_row</function> ºÍ
<function>pg_fetch_object</function> ÒÔ¼°
<function>pg_fetch_result</function>¡£
- </para>
<note>
<para>
´Ó 4.1.0 ¿ªÊ¼£¬<parameter>row</parameter>
³ÉΪ¿ÉÑ¡²ÎÊý¡£Ã¿´Îµ÷ÓÃ
<function>pg_fetch_array</function>£¬ÄÚ²¿µÄÐмÆÊýÆ÷¶¼»á¼ÓÒ»¡£
</para>
</note>
+ <para>
+ ²Î¼û <function>pg_fetch_row</function> ºÍ
<function>pg_fetch_object</function> ÒÔ¼°
<function>pg_fetch_result</function>¡£
+ </para>
</refsect1>
</refentry>
Index: phpdoc-zh/reference/pgsql/functions/pg-set-client-encoding.xml
diff -u phpdoc-zh/reference/pgsql/functions/pg-set-client-encoding.xml:1.2
phpdoc-zh/reference/pgsql/functions/pg-set-client-encoding.xml:1.3
--- phpdoc-zh/reference/pgsql/functions/pg-set-client-encoding.xml:1.2 Sun Sep 29 23:16:32 2002
+++ phpdoc-zh/reference/pgsql/functions/pg-set-client-encoding.xml Thu Jul 24 04:07:30 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.2 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.3 $ -->
+<!-- $Author: yincheng $ -->
+<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready -->
<refentry id="function.pg-set-client-encoding">
<refnamediv>
<refname>pg_set_client_encoding</refname>