You are here

function DB_result::numCols in Flickr API 5

Get the the number of columns in a result set

Return value

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

File

phpFlickr/PEAR/DB.php, line 1225

Class

DB_result
This class implements a wrapper for a DB result set

Code

function numCols() {
  return $this->dbh
    ->numCols($this->result);
}