I am using the following code
$this->db->select('moduleId,actionId');
$this->db->from('role');
$this->db->where('roleId',$session_data['role']);
$role=$this->db->get();
foreach ($role->result_array() as $rows)
{
$module=explode(":",$rows['moduleId']);
$this->db->select('moduleId,moduleName,moduleUrl');
$this->db->from('module');
$this->db->where_in('moduleId',$module);
$row=$this->db->get();
$result=$row->row_array();
}
but only one row will come.how to get all the rows,please help me
