Welcome Guest, Not a member yet? Register   Sign In
problem in $this->db->or_where()
#15

[eluser]Bigil Michael[/eluser]
i solved my problem using this code
Quote:if($search!=‘all’){
$this->db->like('heading', $search);
}
$this->db->where('(cat_id = '.(int)$category.' OR subcat_id = '.(int)$category.')', NULL, FALSE);
$this->db->where('featured', 1);
$this->db->where('status', 1);

thanks to everyone


Messages In This Thread
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:01 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:17 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:25 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:30 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:33 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:35 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:40 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:41 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:45 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:55 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:57 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 06:58 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 07:00 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 07:02 AM
problem in $this->db->or_where() - by El Forum - 05-03-2011, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB