How can I fetch multiple rows at once from a MySQL table in PHP?
Suppose my query returns 5 rows in all and I specify a block size of 2, the function must return an object/array with 2+2+1 rows successively.
P.S. I know that I can iterate over all the results manually and do the same implementation myself, but I am looking for some built-in function that does this cleanly and in an optimized way.
mysql_*functions as they are in the deprecation process. Use MySQLi or PDO instead and be a better PHP Developer.