See attached php.
The purpose of this program is to query a table in a MySQL database & create an excel spreadsheet of the selected info for downloading. The technique used here I have been using for many years and worked here until yesterday or VERY recently.
When this runs, it opens the window for downloading the created file; if opened in Excel, it is empty.
To debug, I removed the top 3 php lines. It runs & generates an html table with the correct data, as it should.
It is possible I MIGHT have messed up the syntax of the top 3 lines.
Can someone tell me what is wrong?