jract7
Member
Posted 7 months ago #
In my plugin, I have a table generated by a query... then I have the code to stream a CSV, it is working... but it is streaming the entire webpage AND the database info to the file. My question is... where or how do I execute this code so I'm only getting the database data into the CSV?
Here is the code at pastebin
[Code moderated as per the Forum Rules.]
jract7
Member
Posted 7 months ago #
The answer was to call the code inside(at the top) of my page template using the $_POST function... That is not the solution I was looking for.. but it will work for now.
If anyone has an idea how to email that also.. that would be a great help