CodeIgniter Forums

Full Version: When Using Procedure with Query Builder Class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I call procedure with $this->db->query('call some_procedure'); and return result_array();

and next my code I write something select or update
then error "Commands out of sync; you can't run this command now"

I try to end procedure or restart db but don't solution.

pls you know how to fix , help me thank you.
post your code.
$check = $this->db->query("call checkbooking('".$this->session->userdata('acc_name_stud')."', '".$now."', '".$this->session->userdata('camp_id')."')");
$result = $check->result_array();

$this->Some_model->load_someting();

Now I try using free_result(), but can not fix it.
mysqli_next_result( $this->db->conn_id );
(04-21-2016, 02:44 PM)skunkbad Wrote: [ -> ]mysqli_next_result( $this->db->conn_id );

it work find thank you very much :")