int db2_num_rows    ( resource $stmt   )

db2_num_rows Returns the number of rows affected by an SQL statement

stmt

A valid stmt resource containing a result set.