Hi All
I have a query and It returns 10 rows, how can u get the whole recordset , all the rows in an array, at once. As much as i know in mysql there is mysq_fetch_array(),but that just returns one row and yu have to kep looping till the end.
like
$result=mysql_query("select * from names")
while($row=mysqlfetch_array($result)){
..
..
}
But i want to know is there any method in mysql to get the whole recordset, if not can anybody tell me any trick or way to get all the recordset in one array.
thanks anyhelp will be greatly appreciated.