getproducts(); $product_id = @$products[$param[0]]['id']; $product_name = str_replace(" ","-",$products[$param[0]]['name']); $report = $reports->Uninstall_Feedback($validity, $dim, $param[0], $param[4]); //echo "
";print_r($report);
//echo "Total Records =".count($report);

/*   /// txt file 
$fname = 'uninstall-feedback-report-'.$product_name.'.txt';

header('Content-Description: File Transfer');
header("Content-type: application/text");
header('Content-Disposition: attachment; filename='.$fname);
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public'); 
*/

   /// xls file 
$fname = 'uninstall-feedback-report-'.$product_name.'.xls';

header('Content-Description: File Transfer');
header("Content-Disposition: attachment; filename=\"$fname\"");
header("Content-Type: application/vnd.ms-excel");
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public'); 

ob_clean();
flush();

for($i=0;$i