title: php query not returning rows
body: <p>I have this MySql query that is not returning the output but If I define a limit below 200 records the return works ( return the records ).</p>
  
  <p>normally this query must return 5000 records . </p>
  
  <p>So the question is what I doing wrong and what I have to Do to return all rows .</p>
  
  <p>Is there any configuration in php.ini or other file that fix this query?</p>
  
  <pre><code>    getConnection();
      $connection =  getConnection();
      $stmt = $connection-&gt;prepare("SELECT * FROM estadoactual limit 200");
      $stmt-&gt;execute( );
  
      $rows = $stmt-&gt;fetchAll();
      echo json_encode($rows);
  </code></pre>
  
  <p>If I put limit 200 the query works but if I remove this limit then don't</p>
  
  <p>I try exand de the memory limit in php.ini to 512MB/2048MB but not work</p>