I'm running a number of MySQL queries in php with the following code:
$this->conection = new mysqli($this->server, $this->user, $this->pass, $this->db);
$query = "call createNew(....)";//the triple dots represent the parameters, of course, and createNew() is a stored procedure in my database
$consult = $this->conection->query($query);
$query2 = "call loadNewID(....)";
$consult2 = $this->conection->query($query2);
$query3 = "call loadNewID(....)";//same stored procedure as the previous one, but with different parameters
$consult3 = $this->conection->query($query3);
So the problem is that consult and consult2 work just fine and return "1" as they should, but consult3 doesn't work and returns nothing. The curious thing is that if I avoid running query2 and consult2 lines of code, query3 and consult3 work just fine. That's why the only conclusion that makes sense to me is that there is some kind of limit of queries that you can run in a php file... could someone perhaps tell me if I'm right or wrong about this? or how can I fix my problem and make all the queries work?