I have a webpage that has some very simple code..
<?php do { ?>
<?php echo $row_rstest['InvoiceNo']; ?><br>
<?php echo $row_rstest['CustomerName']; ?><br>
<?php echo $row_rstest['AKA']; ?><br>
<?php } while ($row_rstest = mysql_fetch_assoc($rstest)); ?>
Very simple repeat that gives me a nice clean list down the page .... Thus
1000.001
AVON RUBBER PLC.
AVON
1000.002
AVON RUBBER PLC.
AVON
1001.001
AVON RUBBER PLC.
etc...
etc...
Exactly what I need...
Here's the question, and I'm probably missing something simple.
I need a text file from that, exactly as is on the screen preferably with a forced download.
Any ideas would be much appreciated..
If you look at <a href="http://oasdb.net/system/test.php">Test</a>
I have tried all the various php such as.
<?php
header("Content-Type: text/plain");
header("Content-Disposition: Attachment; filename=test.txt");
header("Pragma: no-cache");
?>
but I either get all the text in line with the HTML tags, I just want the text displayed in the way it is displayed on the screen.
I hope this make more sense now.
Thanks
Andrew