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