Home > PHP > Function > > maxdb->affected_rows()

maxdb->affected_rows()

maxdb->affected_rows - Gets the number of affected rows in a previous MaxDB operation

Syntax

int maxdb->affected_rows (resource $link)

Arguments

  • link

Description

Procedural style:

Version

PHP PECL maxdb >= 1.0

Return value

An integer greater than zero indicates the number of rows affected or retrieved. Zero indicates that no records where updated for an UPDATE statement, no rows matched the WHERE clause in the query or that no query has yet been executed. -1 indicates that the number of rows affected can not be determined.