I add before and after writing to log file:
This is the log
Its look to me related to the last sql query I found in the log
select vtiger_reportdatefilter.* from vtiger_reportdatefilter inner join vtiger_report on vtiger_report.reportid = vtiger_reportdatefilter.datefilterid where vtiger_report.reportid=27
PHP Code:
ob_start();
var_dump($result);
$data = ob_get_clean();
$fp = fopen("logs/textfile.txt", "a"); fwrite($fp, "-----------------------\n");
fwrite($fp, $data);
fclose($fp);
$rows = $result->RecordCount();
$fp = fopen("logs/textfile.txt", "a");
fwrite($fp, "^^^^^---after ^^^^^------------\n");
fclose($fp);
This is the log
Code:
...
["_maxRecordCount"]=>
int(0)
["datetime"]=>
bool(false)
["adodbFetchMode"]=>
int(0)
}
^^^^^---after ^^^^^------------
-----------------------
array(10) {
[0]=>
string(2) "27"
["datefilterid"]=>
string(2) "27"
[1]=>
string(79) "vtiger_invoice_recurring_info:start_period:start_period:SalesOrder_Start_Period"
["datecolumnname"]=>
string(79) "vtiger_invoice_recurring_info:start_period:start_period:SalesOrder_Start_Period"
[2]=>
string(6) "custom"
["datefilter"]=>
string(6) "custom"
[3]=>
string(10) "0000-00-00"
["startdate"]=>
string(10) "0000-00-00"
[4]=>
string(10) "0000-00-00"
["enddate"]=>
string(10) "0000-00-00"
}
Its look to me related to the last sql query I found in the log
select vtiger_reportdatefilter.* from vtiger_reportdatefilter inner join vtiger_report on vtiger_report.reportid = vtiger_reportdatefilter.datefilterid where vtiger_report.reportid=27