db_affected_rows

includes/database.pgsql.inc, line 156

Versions
4.6 – 6
db_affected_rows()

Determine the number of rows changed by the preceding query.

Related topics

▾ 4 functions call db_affected_rows()

cache_set in includes/bootstrap.inc
Store data in the persistent cache.
search_cron in modules/search.module
Implementation of hook_cron().
statistics_exit in modules/statistics.module
Implementation of hook_exit().
user_set_authmaps in modules/user.module

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.