Hi,
What's the best way to copy all records in a recordset after a SELECT statement into a multidimensional array? I'm thinking about a FOR loop inside another FOR loop, but I hope there's something faster.
Is there?
| SitePoint Sponsor |
Hi,
What's the best way to copy all records in a recordset after a SELECT statement into a multidimensional array? I'm thinking about a FOR loop inside another FOR loop, but I hope there's something faster.
Is there?
/(bb|[^b]{2})/ - Shakespeare.


PHP Code:while ($row = mysql_fetch_array($sql_result))
$rows[] = $row;
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
Thanks.
/(bb|[^b]{2})/ - Shakespeare.
Bookmarks