Welcome Guest, Not a member yet? Register   Sign In
When Using Procedure with Query Builder Class
#1

(This post was last modified: 04-21-2016, 07:56 AM by seasenx6.)

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.
Reply
#2

post your code.
Reply
#3

(This post was last modified: 04-21-2016, 10:47 AM by seasenx6.)

$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.
Reply
#4

mysqli_next_result( $this->db->conn_id );
Reply
#5

(04-21-2016, 02:44 PM)skunkbad Wrote: mysqli_next_result( $this->db->conn_id );

it work find thank you very much :")
Reply




Theme © iAndrew 2016 - Forum software by © MyBB