Reducing PHP memory usage while reading from MYSQL
I have to read all rows from a mysql table, then store all rows in a PHP array. Example: $res = mysqli_query( $con, "SELECT * FROM myTable WHERE 1 ORDER BY type ASC, added DESC" ); while( $row = mysqli_fetch_assoc(…