Previous Page
cols()

Solar_Sql_Select
countPages()

Next Page
distinct()

countPages()

public array countPages ( string $col default 'id' )

Get the count of rows and number of pages for the current query.

Parameters

  • (string) $col: The column to COUNT() on. Default is 'id'.

Returns

  • (array) An associative array with keys 'count' (the total number of rows) and 'pages' (the number of pages based on $this->_paging).

Description

Get the count of rows and number of pages for the current query.