This is actually very easy.   Change the content type of the document that
you send back and then just send all the data back in a <table>.

Make the first line of your php  <?header("content-type:
application/vnd.ms-excel") ?> and only send a table, no <html> etc.

Regards,
Gary "SuperID" Huntress
=======================================================
FreeSQL.org offering free database hosting to developers
Visit http://www.freesql.org:27960 (AT&T is currently blocking 80 and 8080)



----- 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