@sebconnJun 08.2005 — #it would be much easier to write information to a csv file, which opens perfectly fine in excel, you'll find most sites that want the function you are looking for do this.
the best way is not to save a csv file on your server for people to download. use headers, this allows you to output dynamic data and let users save it easily
for example:
[code=php]
<?php // We'll be outputting a CSV header('Content-type: text/csv'); // It will be called data.csv header('Content-Disposition: attachment; filename="data.csv"');