Welcome Guest, Not a member yet? Register   Sign In
problem when using a while loop
#2

[eluser]vickel[/eluser]
The error lies in your model. Change the if clause for this:

Code:
if ($query->num_rows>0)
{
    $this->db->select('somecolumn');  
    $this->db->select('anothercolumn');  
    $query = $this->db->get('entries');
    return $query->result();
}


Messages In This Thread
problem when using a while loop - by El Forum - 12-26-2009, 09:03 AM
problem when using a while loop - by El Forum - 12-26-2009, 09:36 AM
problem when using a while loop - by El Forum - 12-26-2009, 09:36 AM
problem when using a while loop - by El Forum - 12-26-2009, 09:52 AM
problem when using a while loop - by El Forum - 12-26-2009, 10:22 AM
problem when using a while loop - by El Forum - 12-26-2009, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB