From 8bbc5ee6db3c5fd5864a1cd0337f389003399b2e Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Mon, 10 Dec 2001 17:57:09 +0000 Subject: [PATCH] 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 --- functions/pgsql.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/functions/pgsql.xml b/functions/pgsql.xml index 6876fb1864..1238de89c4 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -1327,11 +1327,18 @@ for ($i=0; $i < $num; $i++) { - pg_numrows will return the number of rows in a - PostgreSQL result. The argument is a result resource - returned by pg_exec. This function will - return -1 on error. + pg_numrows will return the number of rows in + a PostgreSQL result resource. + result is a qeury result resource returned + by pg_exec. This function will return -1 on + error. + + + Use pg_cmdtuples to get number of rows + affected by INSERT, UPDATE and DELETE query. + + See also pg_numfields and pg_cmdtuples. @@ -1414,7 +1421,7 @@ $dbconn4 = pg_connect ($conn_string); different username) - The previous syntax of: + Multiple parameters syntax for pg_pconnect $conn = pg_pconnect ("host", "port", "options", "tty", "dbname")