Welcome Guest, Not a member yet? Register   Sign In
$this->db->count_all_results() returning 1 instead of 0
#2

[eluser]tpetrone[/eluser]

Start with simply:

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

that should display the count..


Perhaps modify the if statement to:
Code:
if($rowCount >= 1)

or

if($rowCount > 0)

That might get you down the road.



Messages In This Thread
$this->db->count_all_results() returning 1 instead of 0 - by El Forum - 07-30-2012, 07:00 AM
$this->db->count_all_results() returning 1 instead of 0 - by El Forum - 07-30-2012, 08:25 AM
$this->db->count_all_results() returning 1 instead of 0 - by El Forum - 07-30-2012, 08:32 AM
$this->db->count_all_results() returning 1 instead of 0 - by El Forum - 07-30-2012, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB