Welcome Guest, Not a member yet? Register   Sign In
Problem in Pagination
#7

[eluser]Thorpe Obazee[/eluser]
Try using the AR. I assume the problem occurs on the first page only. Nothing is preventing the ',' comma from getting in your query which causes the error.

Code:
$this->db->where(array('userId' <> =>$user_id, 'deleted' => 0));
$this->db->order_by('username');
$this->db->limit($num, $offset);
$query = $this->db->get('tms_user');

if ($query->num_rows() > 0)
{
    return $query->result();
}
return FALSE;


Messages In This Thread
Problem in Pagination - by El Forum - 06-26-2009, 12:08 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:18 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:20 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:25 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:26 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:28 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:33 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:48 AM
Problem in Pagination - by El Forum - 06-26-2009, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB