title: Is there a maximum amount of querys in PHP that you can run with MySQL?
body: <p>I'm running a number of MySQL queries in php with the following code:</p>
  
  <pre><code>$this-&gt;conection = new mysqli($this-&gt;server, $this-&gt;user, $this-&gt;pass, $this-&gt;db);
  
  $query = "call createNew(....)";//the triple dots represent the parameters, of course, and createNew() is a stored procedure in my database
  $consult = $this-&gt;conection-&gt;query($query);
  
  $query2 = "call loadNewID(....)";
  $consult2 = $this-&gt;conection-&gt;query($query2);
  
  $query3 = "call loadNewID(....)";//same stored procedure as the previous one, but with different parameters
  $consult3 = $this-&gt;conection-&gt;query($query3);
  </code></pre>
  
  <p>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?</p>