Results 1 to 3 of 3
Thread: Modify Text files
Oct 4, 2012, 00:27 #1
- Join Date
- Jun 2010
- 0 Post(s)
- 0 Thread(s)
Modify Text files
I figure out how to write all the entries from my database onto a text file.
header("Content-Type: text/plain"); header("Content-Disposition: Attachment; filename=test.txt"); header("Pragma: no-cache"); exit;
Each entries (or row) have 5 elements in it and there are multiple entries in my database.
How do I write each elements follow by a comma onto a text file? Each row in the database would have a new line in my text file as well.