Welcome Guest, Not a member yet? Register   Sign In
Active record count() possible?
#1

[eluser]stef25[/eluser]
Is it possible to do something like this with CI Active Record?

$this->db->select('tag_name', count('tag_name'));

It seems the count() part is just ignored and the query only returns tag_name. From what I've found on the forums and in the documentation this is not possible?

Anyone have a workaround?


Messages In This Thread
Active record count() possible? - by El Forum - 10-25-2009, 09:03 AM
Active record count() possible? - by El Forum - 10-25-2009, 09:14 AM
Active record count() possible? - by El Forum - 10-25-2009, 09:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB