Welcome Guest, Not a member yet? Register   Sign In
Neater way to extract 'count(id)' style entries from query->row() call
#8

[eluser]JayTee[/eluser]
[quote author="xwero" date="1235950991"]the AR class of the database library has the methods count_all and count_all_results which give you a nicer way to get the row count.[/quote]

I was avoiding that one since he appeared to be wanting to use the db->query style. For those that are curious:
Code:
$raw_count = $this->db->count_all('my_table');


Messages In This Thread
Neater way to extract 'count(id)' style entries from query->row() call - by El Forum - 03-01-2009, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB