MDB_Common::affectedRows()

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

Synopsis

require_once 'MDB.php';

integer affectedRows ()

Description

Number of affected rows by a query

Return value

integer - number of rows or MDB_Error when fail

Throws

Table 33-1. Possible PEAR_Error values

Error codeError messageReasonSolution
MDB_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()