Commands out of sync |
What you're doing is calling more than 1 procedures which is a multi query equivalent of php I think, and according to the documentation of mysql:
Quote:If you get Commands out of sync; you can't run this command now in your client code, That's the solution for C, and the equivalent for php is to call mysqli_next_result function which takes the mysqli connection as a parameter. You have to call that in between your procedure calls. Like this: PHP Code: function get_degree_dropdown(){ Also, it's a good practice to free your result resource like this: PHP Code: $query->free_result(); PHP Code: $query= $this->db->query('call get_DoctorDetaisById('.$doctor_id.')'); |
Messages In This Thread |
Commands out of sync - by debajyoti.saha09 - 01-14-2015, 12:46 AM
RE: Commands out of sync - by Rufnex - 01-14-2015, 02:32 AM
RE: Commands out of sync - by skunkbad - 01-15-2015, 02:21 AM
RE: Commands out of sync - by mehmood sanjrani - 03-01-2016, 11:21 AM
RE: Commands out of sync - by meSmashsta - 01-08-2017, 11:40 PM
RE: Commands out of sync - by dimas - 03-21-2017, 04:24 AM
|