WordPress.org

Support

Support » How-To and Troubleshooting » Streaming a CSV

Streaming a CSV

  • 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.]

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘Streaming a CSV’ is closed to new replies.