
Originally Posted by
delia
Yup, and I've tried that - instead of the product model numbers it does Array,Array
implode operates on a single dimensional array, such as in my example ;)
Knowing the data set you need (and how it will be used / sent) would be useful... That way the data can be manipulated in the while loop to be in a complimentary format to the later use of the data...
For example if you needed to send a csv of just model numbers... but wanted access to all fields later (and assuming model numbers are unique)...
Code:
$productsModelArray = array();
while(!$productsQueryResult->EOF ) {
$productsModelArray[$productsQueryResult->fields['products_model']] = $productsQueryResult->fields;
$productsQueryResult->MoveNext();
}
$csvModelList = implode(',',array_keys($productsModelArray));