Originally Posted by Old Pedant
It would be trivial in ASP, where the method GETROWS() converts the entire set of records to an array, automatically. <grin/>)
In PHP mysqli_result::fetch_all
also converts the entire set of records to an array, automatically (it used to be done using mysql_fetch_array in the now obsolete mysql_ interface) Presumably there's also a PDO call that does it as well for those using that in PHP.