I have written a stored procedure for a table, and after that i am executing queries for same table in php function, But i am getting error :
Error in db : Commands out of sync, you can't run the command now..
I tried mysqli: multi_query also instead of mysqli:query, but i got null output.
Can anyone please help me to sort out this problem.
P.S : stored proceure is working as expected and query are also correct.. but together it returns the error.
You have to consume all selects, and navigate to next result