Definition

db_affected_rows()
drupal/includes/database.mysqli.inc, line 210

Description

Determine the number of rows changed by the preceding query.

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Code

function db_affected_rows() {
  global $active_db; /* mysqli connection resource */
  return mysqli_affected_rows($active_db);
}