• Using native query in Codeigniter Framework Model

    Date Posted: 10-21-2016
    Author: CEBUFREELANCER

    function get_article_categories()
    {
            $sql = 'select a.id, a.categoryName from tbl_article_category a';
    
            $query = $this->db->query($sql);
    
            return $query->result();
        
    }
    

Advertisement