
04-13-2008, 07:05 PM
|
 |
Junior Member
|
|
Join Date: Apr 2008
Location: Russian Federation
Posts: 6
|
|
Quote:
Originally Posted by Michel
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?
|
I don't know, really...
ahaha))
|