can anybody tell my why in this function

public function countContents($category_id){
        $query = $this->query('SELECT COUNT(*) as how_many FROM '.
$this->TABLE_CONTENTS_CATEGORIES.' WHERE category_id = '.
$category_id);

        return $query[0][0]['how_many'];

}

to return 'how_many' value i have to write : return $query[0][0]
['how_many']; ( bleee )


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to