View Single Post
  #2 (permalink)  
Old 02-06-2008, 10:16 AM
Salz` Salz` is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

try
Code:
    public function countusers() {
        $select = $this->select();
        $select->from($this->_name,'COUNT(*) AS num');
        return $this->fetchRow($select)->num;
    }
edit: oh, and you should have a look at How can I get the number of rows in a query?
Reply With Quote