Add description for pg_cmdtuples in pg_numrows page.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64472 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yasuo Ohgaki 2001-12-10 17:57:09 +00:00
parent 9b7ade58f4
commit 8bbc5ee6db

View file

@ -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 @@ for ($i=0; $i < $num; $i++) {
</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 @@ $dbconn4 = pg_connect ($conn_string);
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>