db_affected_rows

Definition

db_affected_rows()
includes/database.pgsql.inc, line 207

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

<?php
function db_affected_rows() {
  global $last_result;
  return pg_affected_rows($last_result);
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.