* print fields according to the config order.

This commit is contained in:
wangchunsheng
2011-05-03 03:59:05 +00:00
parent f09dd186f7
commit fa5c5c0d57
3 changed files with 13 additions and 6 deletions
+7 -1
View File
@@ -14,5 +14,11 @@
echo '"'. implode('","', $fields) . '"' . "\n";
foreach($rows as $row)
{
echo '"'. implode('","', (array)$row) . '"' . "\n";
echo '"';
foreach($fields as $fieldName => $fieldLabel)
{
isset($row->$fieldName) ? print($row->$fieldName) : print('');
echo '","';
}
echo '"' . "\n";
}