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

[eluser]Bigil Michael[/eluser]
but it will not echo the query

i applied like this
Quote:function get_ordinary_search($search, $category)
{
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');

$result_category_newss = $this->db->get('classifieds');
$this->output->enable_profiler();
echo $result_category_newss;
return $result_category_newss->result();

}
and it shows some error


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