function DB_mysql::affectedRows in Flickr API 5
Determines the number of rows affected by a data maniuplation query
0 is returned for queries that don't manipulate data.
Return value
int the number of rows. A DB_Error object on failure.
Overrides DB_common::affectedRows
File
- phpFlickr/
PEAR/ DB/ mysql.php, line 555
Class
- DB_mysql
- The methods PEAR DB uses to interact with PHP's mysql extension for interacting with MySQL databases
Code
function affectedRows() {
if (DB::isManip($this->last_query)) {
return @mysql_affected_rows($this->connection);
}
else {
return 0;
}
}