View Single Post
  #2 (permalink)  
Old 04-02-2008, 11:17 AM
loloziberlo loloziberlo is offline
Junior Member
 
Join Date: Jun 2007
Location: Barcelona
Posts: 8
Default

Assuming $db is the connection to your database and "customers" is your table:

$query = $db->select()->from('customers', array('count'=>'COUNT(*)');
$howMany = $db->fetchOne($query); // $howMany is what you're looking for
__________________
------------------
Loris Candylaftis
Reply With Quote