function db_affected_rows
6.x database.pgsql.inc | db_affected_rows() |
6.x database.mysqli.inc | db_affected_rows() |
6.x database.mysql.inc | db_affected_rows() |
Determine the number of rows changed by the preceding query.
Related topics
14 calls to db_affected_rows()
- cache_set in drupal-6.x/
includes/ cache.inc - Store data in the persistent cache.
- filter_list_format in drupal-6.x/
modules/ filter/ filter.module - Retrieve a list of filters for a certain format.
- lock_acquire in drupal-6.x/
includes/ lock.inc - Acquire (or renew) a lock, but do not block if it fails.
- lock_may_be_available in drupal-6.x/
includes/ lock.inc - Check if lock acquired by a different process may be available.
- node_type_update_nodes in drupal-6.x/
modules/ node/ node.module - Updates all nodes of one type to be of another type.
File
- drupal-6.x/
includes/ database.mysqli.inc, line 204 - Database interface code for MySQL database servers using the mysqli client libraries. mysqli is included in PHP 5 by default and allows developers to use the advanced features of MySQL 4.1.x, 5.0.x and beyond.
Code
function db_affected_rows() {
global $active_db; /* mysqli connection resource */
return mysqli_affected_rows($active_db);
}