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")