Welcome to WebmasterWorld Guest from 220.127.116.11
Right now, my code will output five records onto the screen. What I would like instead would be to output this content into one array.
How might I do that?
$query=mysql_query("SELECT content FROM database LIMIT 5");
while($row=mysql_fetch_array($query)) echo $row["content"];
joined:Nov 12, 2005
I have observed that using this syntax:
$array = $row['content'];
is about twice as fast (on average) than using this:
when dealing with large arrays. :)