Hi,
This originates from php but its a javascript issue..
I am using a script to send data to excel, and for each data set I want to create a new sheet. The sheet will be determined by a row from the DB. There is one final sheet called end of report (as you will see below). The issue is that my variables from php are being ignored, there are no errors, but only the end of report sheet is created
`<button onclick=”tablesToExcel(<?php while($create_sheets_row = $create_sheets->fetch()){
$sheet_value = $create_sheets_row[‘area’];
$sheet_html = “[‘$sheet_value’],”;
`echo $sheet_html; } ?> [‘end of report’], ‘Configuration Management.xls’, ‘Excel’)”>Export to Excel</button>
What am I missing here?
Thanks
G