WordPress.org

Ready to get started?Download WordPress

Forums

Streaming a CSV (2 posts)

  1. jract7
    Member
    Posted 2 years 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.]

  2. jract7
    Member
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Topic