Welcome Guest, Not a member yet? Register   Sign In
count database records + limit
#3

[eluser]naren_nag[/eluser]
If you using CI's active record pattern, then you can use this to get the total number of results for a query you are building.

Code:
$this->db->count_all_results();

Or you can use this to get the total number of rows in a table

Code:
$this->db->count_all();

Please take a look at CI's documentation for the database class.

cheers,

naren


Messages In This Thread
count database records + limit - by El Forum - 07-31-2009, 04:21 PM
count database records + limit - by El Forum - 07-31-2009, 04:35 PM
count database records + limit - by El Forum - 08-01-2009, 07:03 AM
count database records + limit - by El Forum - 08-02-2009, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB