DB_Common::affectedRows()

DB_Common::affectedRows() -- Number of affected rows

Synopsis

require_once 'DB.php';

integer affectedRows ()

Description

Number of affected rows by a query

Return value

integer - number of rows or DB_Error when fail

Throws

Table 20-1. Possible PEAR_Error values

Error codeError messageReasonSolution
DB_ERROR_NOT_CAPABLE null Function is not supported by the database backend Switch to another database system, if you really need this feature.

Note

This function can not be called statically

See

query()