I’m trying to count all the entries for exp_clicks and group them by their entry id, but cant get it. any help would be appreciated.
I’ve tried, $this->EE->db->count_all(‘exp_clicks’, ‘entry_id’); $this->EE->db->count_all(‘exp_clicks’, $this->EE->db->group_by(‘entry_id’));
Here is the query statement
SELECT entry_id, COUNT(*) as “totalclicks” FROM exp_clicks GROUP BY entry_id
thanks
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.