I want to pass array to where_in using Active Record.
I saw few reference link, can pass like this:
$this->db->where_in('id', array('20','15','22','42','86'));
Query :
$mts = $this->db->select('subcat_id')->get_where('subcategory_tbl', array('cat_id' => $cat_id));
$result = $mts->result_array();
But My result Array in this form :
Array
(
[0] => Array
(
[subcat_id] => 12
)
[1] => Array
(
[subcat_id] => 13
)
)
So how can i pass this array id to where_in clause ? I am confused here.