You are here

function DB_common::numRows in Flickr API 5

Determines the number of rows in a query result

Parameters

resource $result the query result idenifier produced by PHP:

Return value

int the number of rows. A DB_Error object on failure.

2 methods override DB_common::numRows()
DB_mysql::numRows in phpFlickr/PEAR/DB/mysql.php
Gets the number of rows in a result set
DB_pgsql::numRows in phpFlickr/PEAR/DB/pgsql.php
Gets the number of rows in a result set

File

phpFlickr/PEAR/DB/common.php, line 1687

Class

DB_common
DB_common is the base class from which each database driver class extends

Code

function numRows($result) {
  return $this
    ->raiseError(DB_ERROR_NOT_CAPABLE);
}