PROTECTED]
Subject: Re: [PHP-DB] exporting data to excel
matthew perry wrote:
I am looking for the easiest way to export data to an excel file. Is
the easiest way to use PHP's file handling functions?
Easiest way is to just send Excel headers and output an HTML table.
Excel will convert
Do you set the content-type in the response header like in JSP and
servlets?
I've been reading the PHP Manual; where do you find stuff like this?
take a look at the header function
http://php.net/header
an example...ymmv
header(Content-type: application/vnd.ms-excel);
way cool - thanks for the clues!
Mark
It's better to TEACH a man how to fish than to GIVE him a fish!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 7:46 AM
take a look at the header function
http://php.net/header
an example...ymmv
To: Galbreath, Mark A
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] exporting data to excel
Do you set the content-type in the response header like in JSP and
servlets?
I've been reading the PHP Manual; where do you find stuff like this?
take a look at the header function
http://php.net
Isn't that better to use excel com object?
-Original Message-
From: matthew perry [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 9:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] exporting data to excel
I am looking for the easiest way to export data to an excel file. Is
matthew perry wrote:
I am looking for the easiest way to export data to an excel file. Is
the easiest way to use PHP's file handling functions?
Easiest way is to just send Excel headers and output an HTML table.
Excel will convert it to a spreadsheet.
--
---John Holmes...
Amazon Wishlist: