db_affected_rows

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/database.mysql.inc, строка 275

Версии
5 – 6
db_affected_rows()

Возвращает количество записей, изменённых предыдущим запросом.

Связанные темы

▾ 6 функции вызывают 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().
user_set_authmaps in modules/user/user.module

Код

<?php
function db_affected_rows() {
  global $active_db;
  return mysql_affected_rows($active_db);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему