Re: Generate a file
| From: | Peter | Date: | Wed, 10 Jul 2002 09:42:07 +0000 |
| Subject: | Re: Generate a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106736@lists.php.net to get a copy of this message | ||
Maybe this will solve your problem
This code wil save and excel of word file from an MySql query
http://www.pscode.com/xq/ASP/txtCodeId.625/lngWid.8/qx/vb/scripts/ShowCode.h
tm
Peter
-------------------------------------
"Phillip S. Baker" <phillip@freewolf.net> schreef in bericht
news:5.1.0.14.2.20020710003925.00b1fc38@209.164.73.211...
> Okay here is what I want to do.
>
> Select the field of a database that I want.
> Hit submit.
> Execute a query of a database based on the said form.
> Gather all the data and rows and plug them into an excel generated file.
> Display a dialogue box asking the user the save the file.
> The saved file being an excel file with data generated from a database.
>
> Make sense?
>
> Would the header calls be something like this?
> header("Content-type: application/xls");
> header("Content-Disposition: attachment; filename=downloaded.xls");
>
> Now if that is cool, how would I get the data into the downloaded.xls file
> to have this work?
>
> Thanks
>
> Phillip
>