You are here

function db_affected_rows in Drupal 5

Same name in this branch
  1. 5 includes/database.mysqli.inc \db_affected_rows()
  2. 5 includes/database.mysql.inc \db_affected_rows()
  3. 5 includes/database.pgsql.inc \db_affected_rows()
Same name and namespace in other branches
  1. 4 includes/database.mysqli.inc \db_affected_rows()
  2. 4 includes/database.mysql.inc \db_affected_rows()
  3. 4 includes/database.pgsql.inc \db_affected_rows()
  4. 6 includes/database.mysqli.inc \db_affected_rows()
  5. 6 includes/database.mysql.inc \db_affected_rows()
  6. 6 includes/database.pgsql.inc \db_affected_rows()

Determine the number of rows changed by the preceding query.

Related topics

6 calls to db_affected_rows()
cache_set in includes/cache.inc
Store data in the persistent cache.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
search_update_totals in modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
sess_write in includes/session.inc
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().

... See full list

File

includes/database.mysql.inc, line 275
Database interface code for MySQL database servers.

Code

function db_affected_rows() {
  global $active_db;
  return mysql_affected_rows($active_db);
}