in my controller i have an associative array in the following pattern!
Array ( [0] => Array ( [id] => 13 ) [1] => Array ( [id] => 14 ) )
now what i want to do is there is some data on another table where these ids are referenced as foreign keys what i want to do is iterate through this array of ids and fetch data from another table on the basis of these ids! this will be my query
$this->db->select("path");
$this->db->from('main_data');
$this->db->where("f_key",$id); //this is the id i want to take from array i written above
$query = $this->db->get();
return $query->result_array();