View Single Post
  #3 (permalink)  
Old 04-02-2008, 08:42 PM
Michel Michel is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default

Thx for helping me. I need to put this in the Model, right? Like this?

PHP Code:
public function NumberOfCustomers()
    {
        
$query $db->select()->from('customers', array('count'=>'COUNT(*)');
        
$howMany $db->fetchOne($query);
        return 
$howMany;
    } 
I get an error for this, saying an unexpected ';' is there. Every line needs a ;, I think.

Any ideas?
Reply With Quote