How to use count(*) in Zend Select Statement

public function getCount()
{
$select = $this->select();
$select->from($this, array(‘count(*) as amount’));
$rows = $this->fetchAll($select);

return($rows[0]->amount);
}

Leave a Comment

Your email address will not be published.