The way I do it is use this header command:

<? Header ('Content-Type: application/vnd.ms-excel'); ?>

Below that you can use a normal HTML table to lay out your data.  Make sure
you only use <table><tr> and <td> tags, there should be no <html> or <body>
tags in the page.

D'Arcy

----- Original Message -----
From: "Kit Kerbel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 19, 2001 2:02 AM
Subject: database/php question


> This is kinda off topic, but, I have a mysql database and I am generating
an
> html table from one of my queries.  I want to be able to download this
html
> table, but in excel format.  Any suggestions on a way to do this?
>
> Thanks,
> Kit
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to