pg_cmdtuples

(PHP 3, PHP 4 >= 4.0.0)

pg_cmdtuples -- Returns number of affected records(tuples)

Description

int pg_cmdtuples ( resource result)

pg_cmdtuples() returns the number of tuples (instances/records/rows) affected by INSERT, UPDATE, and DELETE queries executed by pg_exec(). If no tuple is affected by this function, it will return 0.

See also pg_exec() and pg_numrows().