0

How to call stored procedure using codeigniter ? help me, please

function ViewSchedule($dt_dari,$dt_to,$dt_org,$dt_emp){
        $result = $this->db->query("exec dailyAttdCrossTab '".$dt_dari."','".$dt_to."','".$dt_org."','".$dt_emp."'");

        return $result;
    }
Tale Words
  • 55
  • 8
  • It is going to be hard to help you. Please clearly articulate the error or problem you are running into. – Shawn Nov 23 '16 at 07:36

1 Answers1

0

you can call stored procedure as below

$this->db->query("call test_proc()");
Dilip Patel
  • 764
  • 15
  • 24