I'm setting up an interface where a user can select a start date and end date and when a button is clicked it will download all of the data stored in a database table between those two dates as a text file.
I could use some advice on this. I'm guessing that retrieving the data and then writing it to a file on the server is the first step. Would I need to use 'header' functions to get the file to download automatically?
The data retrieval and file creation isn't a problem, but I could use some help with the format of the header functions (if that is indeed what's needed).
Also, is destroying the file that's been created using code placed after header()'s feasible?
Any help appreciated.
I could use some advice on this. I'm guessing that retrieving the data and then writing it to a file on the server is the first step. Would I need to use 'header' functions to get the file to download automatically?
The data retrieval and file creation isn't a problem, but I could use some help with the format of the header functions (if that is indeed what's needed).
Also, is destroying the file that's been created using code placed after header()'s feasible?
Any help appreciated.