Welcome Guest, Not a member yet? Register   Sign In
Active Record select question
#2

[eluser]Eric Barnes[/eluser]
Well I got it working. Smile I had to go the join route.

Code:
$this->db->select('*');
            $this->db->from('articles');
            $this->db->join('article2cat', 'articles.a_id = article2cat.article_id', 'left');
            $this->db->where('category_id', $id);
            $this->db->where('a_display', 'Y');
            $query = $this->db->get();
            echo $this->db->last_query();
            return $query;


Messages In This Thread
Active Record select question - by El Forum - 10-26-2007, 02:08 PM
Active Record select question - by El Forum - 10-26-2007, 02:21 PM
Active Record select question - by El Forum - 10-27-2007, 02:06 AM
Active Record select question - by El Forum - 10-27-2007, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB