How can you add all the rows from a mysql_query to a mysql_fetch_array()? I want to be able to do it as efficiently as possible as it could be working with quite a few rows.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
The most common way:
|
|||||||||||||||||||||
|
EDIT some runtime stats
vs.
interesting :) |
|||||||||||||
|
while ($row = mysql_fetch_assoc($result)) { echo $row['id']; }
? – thirtydot Jan 10 '11 at 3:03