yohgaki Mon Dec 10 12:57:10 2001 EDT
Modified files:
/phpdoc/en/functions pgsql.xml
Log:
Add description for pg_cmdtuples in pg_numrows page.
Index: phpdoc/en/functions/pgsql.xml
diff -u phpdoc/en/functions/pgsql.xml:1.53 phpdoc/en/functions/pgsql.xml:1.54
--- phpdoc/en/functions/pgsql.xml:1.53 Mon Dec 10 12:34:56 2001
+++ phpdoc/en/functions/pgsql.xml Mon Dec 10 12:57:09 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.53 $ -->
+<!-- $Revision: 1.54 $ -->
<reference id="ref.pgsql">
<title>PostgreSQL functions</title>
<titleabbrev>PostgreSQL</titleabbrev>
@@ -1327,11 +1327,18 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>pg_numrows</function> will return the number of rows in a
- PostgreSQL result. The argument is a result resource
- returned by <function>pg_exec</function>. This function will
- return -1 on error.
+ <function>pg_numrows</function> will return the number of rows in
+ a PostgreSQL <parameter>result</parameter> resource.
+ <parameter>result</parameter> is a qeury result resource returned
+ by <function>pg_exec</function>. This function will return -1 on
+ error.
</para>
+ <note>
+ <para>
+ Use <function>pg_cmdtuples</function> to get number of rows
+ affected by INSERT, UPDATE and DELETE query.
+ </para>
+ </note>
<para>
See also <function>pg_numfields</function> and
<function>pg_cmdtuples</function>.
@@ -1414,7 +1421,7 @@
different username)
</para>
<para>
- The previous syntax of:
+ Multiple parameters syntax for <function>pg_pconnect</function>
<command>$conn = pg_pconnect ("host", "port", "options", "tty",
"dbname")
</command>