[Solved] Dynamically populating array
Posted: Wed Oct 22, 2008 11:40 am
I need to dynamically add content to an array I’m using so for example I’m using the following:
But I want to dynamically populate this from fields in my database and I think I need to run some kind of loop.
For example how can I pass this which returns i Ate My Dinner
Into my array e.g. similar to something like this:
Thanks for any help.
Code: Select all
$review_text = array("I", "Ate", "My", "Dinner" );For example how can I pass this which returns i Ate My Dinner
Code: Select all
do {
$text = $row_GetRandomReview['random_details_field'];
} while ($row_GetRandomReview1 = mysql_fetch_assoc($GetRandomReview1));Code: Select all
$review_text = array($text );