Re: Mysql data to MS Word?
| From: | CPT John W. Holmes | Date: | Mon, 21 Apr 2003 17:03:53 +0000 |
| Subject: | Re: Mysql data to MS Word? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144669@lists.php.net to get a copy of this message | ||
Easy way is to just have:
<?php
header("Content-Type: application/vnd.ms-word; name='word'");
header("Content-Disposition: attachment; filename=" . $filename .
".xls");
?>
at the top of your document and then just create a normal HTML page after
that. Word will pick up all of the formatting that way.
---John Holmes...
----- Original Message -----
From: "Denis L. Menezes" <menezesd@singnet.com.sg>
To: "PHP general list" <php-general@lists.php.net>
Sent: Monday, April 21, 2003 12:48 PM
Subject: [PHP] Mysql data to MS Word?
Hello Friends.
I have a mysql database. I now want to query three of the fields and make a
book using MS word. Can someone tell me a quick way?
Also, is there another way to do this instead of using MS word?
Thanks
Denis