Welcome Guest, Not a member yet? Register   Sign In
num_rows returning empty while result_array has results
#2

Use $query->num_rows() (method), not $query->num_rows (property). In CI3, if the property happens to be empty, the method will set it and return the value.

Since the property is not documented, but the method is, it's unlikely you were supposed to use the property in the first place.
Reply


Messages In This Thread
RE: num_rows returning empty while result_array has results - by mwhitney - 03-26-2015, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB