**My Model code is given below.**

```
   public function getattendence($data)
   {

        $sql="CALL `sp_AttendanceDetails`(?,?,?);";
        $query=$this->db->query($sql,$data);
        return $query->result_array();
   }

```

But it return one result set.The second result set i not get..