The difference in how the builder where and codeigniter query builders work The difference in how the builder where and codeigniter query builders work codeigniter codeigniter

The difference in how the builder where and codeigniter query builders work


In your first method you are not returning any results. You are instead returning the DB object which holds various properties. To return the Result you should use

        $this->db->where("owner", $id_bidang);        return $this->db->get("decision_maker")->row_array();

If your query returns multiple results, you should use result_array() instead of row_array()