I was wondering if there’s any method from the mysqli class for free memory after a get_result(), I saw that people uses closeCursor() method, but compiler says:
Call to undefined method mysqli_stmt::closeCursor()
and I call it through my prepared statement object like this $Statement->closeCursor();
I saw that closeCursor method closes the connection to the database too, so does it means that if I want to make another query I need to re-instantiate the mysqli class again? if so then, is there any other way I can do the same but leaving an opened connection? I’m only interested in free all the variables that result_sets leaves and start another query normally, thank’s!
By the way, I’m doing this for a custom mysql backup system I’m just making, cheers! – Edgar.
closeCursor()is not a mysqli statement method.What you are looking for is free_result and free