Welcome Guest, Not a member yet? Register   Sign In
Trying to count all records from database
#6

You have grouped it by pageid. Since both your pageid's are the same they are grouped as one row. There are two of them.

https://www.w3schools.com/sql/sql_groupby.asp

Also in the docs, group_by is near the bottom of this section:
https://www.codeigniter.com/user_guide/d...milar-data
Reply


Messages In This Thread
RE: Trying to count all records from database - by PaulD - 09-14-2017, 05:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB