Welcome Guest, Not a member yet? Register   Sign In
variable type and $this->db->count_all_results();
#1

[eluser]Eric Cope[/eluser]
Maybe its just my C background, but shouldn't the function
Code:
$this->db->count_all_results();
return an integer, not a string? I currently typecast it, but this seems like something that should be done within the db class. Was there a reason for it to return a string?
#2

[eluser]thinkigniter[/eluser]
I use this feature, mostly, to display the results of a search but if I use it in a checking how many results and I need it as a Integer I use the php function intval();

Does this help?




Theme © iAndrew 2016 - Forum software by © MyBB