function DatabaseHandler::db_num_rows

7.x DatabaseHandler.php DatabaseHandler::db_num_rows($result)
6.x DatabaseHandler.php DatabaseHandler::db_num_rows($result)

File

classes/DatabaseHandler.php, line 1735

Class

DatabaseHandler

Code

function db_num_rows($result) {
  if (!is_object($result)) {
    return FALSE;
  }

  return $result->rowCount();
}