PHP3 Manual | ||
---|---|---|
Prev | Next |
pg_cmdTuples -- returns number of affected tuples
pg_cmdTuples() returns the number of tuples (instances) affected by INSERT, UPDATE, and DELETE queries. If no tuple is affected the function will return 0.
Example 1. pg_cmdtuples <?php $result = pg_exec($conn, "INSERT INTO verlag VALUES ('Autor')"); $cmdtuples = pg_cmdtuples($result); echo $cmdtuples . " <- cmdtuples affected."; ?> |
Prev | Home | Next |
pg_Close | Up | pg_Connect |