Ok. We can call MySQL procedures in Codeigniter like this:
$buf = array('something', NULL); //array of vars
$this->db->query("CALL some_proc(?, ?)", $buf); //calling stored procedure
But if I have huge array (25-30 items), is there a smoother way to call MySQL routine using arrays? Something better than $this->db->query(“CALL some_proc(?, ?, ?, ? …”);
Thanks in Advance!
Well… You can
$this->db->escape()them before and parse string.