Well, assuming you are writing the data to some file somewhere on the server what you could do is point the browser location to that file once you are done creating it using :
header(<URL>);
Roberto
Dico Reyers wrote:
Hi there,
I have a database with 1000's or rows in it and I want to be able to click on a link in a web site and then be prompted to download the contents of the database in a tab delimited text file.
For example, a person would go to www.myname.com, click on a link, and a php file will go to the database, select and output the info to a text file, and then I want a prompt to appear to download this text file.
I am able to do everything up to the download part. I don't know how to start the download process.
Any help?
Thanks,
-dr