debugging
This commit is contained in:
@@ -148,12 +148,14 @@ function booking_earlyaccess_csv_report() {
|
||||
->orderBy('cid');
|
||||
$result = $codelist_query->execute();
|
||||
|
||||
watchdog('booking_debug', "EarlyAccess CSV query result: @info", array('@info' => var_export( $result, TRUE)));
|
||||
watchdog('booking_debug', "EarlyAccess CSV array keys: @info", array('@info' => var_export( array_keys($result), TRUE)));
|
||||
//calculate the header row for CSV
|
||||
$header = implode($delimiter, array_keys($result));
|
||||
$csv .= $header . "\n";
|
||||
|
||||
//add the records
|
||||
foreach ($result as $record) {
|
||||
foreach (reset($result) as $record) {
|
||||
$output = array();
|
||||
//each keypair in the record
|
||||
foreach ($record as $key => $value) {
|
||||
|
Reference in New Issue
Block a user