Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread @ Edwin
Oops... <[EMAIL PROTECTED]> wrote: > success. And I have read through the user contributed notes and havent' > found it there. Sorry 'bout the link earlier. (You could find some hints under file() though...) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: What do I need to use to create real linefeeds or new lines when viewing under windows? Unices use only the "newline" character (interpreted as "line feed" in dos/win), whereas dos/win uses "carriage return" and "line feed". So to get it to show right in e.g. NotePad

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread Marek Kilimajer
newline in windows is "\r\n" - $newline="\r\n"; [EMAIL PROTECTED] wrote: I found all this and have worked on getting the file output and formated to my (actually my boss') liking. The text file gets formatted just fine when read in Linux but the newlines appear as blocks when viewing in Window

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread ed
success. And I have read through the user contributed notes and havent' found it there. Ed On Fri, 6 Dec 2002, 1LT John W. Holmes wrote: > > What do I need to use to create real linefeeds or new lines when viewing > > under windows? > [snip] > > $newline = "\n"; > > Use \r\n for Windows. >

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread 1LT John W. Holmes
> What do I need to use to create real linefeeds or new lines when viewing > under windows? [snip] > $newline = "\n"; Use \r\n for Windows. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread @ Edwin
Hello, <[EMAIL PROTECTED]> wrote: ...[snip]... > What do I need to use to create real linefeeds or new lines when viewing > under windows? Try the manual again and check specifically the "User Contributed Notes"--I'm sure you'll find something :) http://www.php.net/manual/en/function.fputs.p

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread ed
On Fri, 6 Dec 2002, Tim Ward wrote: > everything you need is here > > http://www.php.net/manual/en/ref.filesystem.php > > in particular fopen(), fputs(), fwrite(), etc. > > Tim Ward > http://www.chessish.com > mailto:[EMAIL PROTECTED] I found all this and have worked on getting the file ou

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread Tim Ward
r 06, 2002 1:25 PM Subject: [PHP] Output of MySQl sorted query to text or Word file. > > I've got a routine that queries a MySQL database and outputs the sorted > results to a web page (script snippet below.) How can I output the exact > same thing to a txt file using thi

[PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread ed
I've got a routine that queries a MySQL database and outputs the sorted results to a web page (script snippet below.) How can I output the exact same thing to a txt file using this script?             $    Page Break"; $count = 0; } } while($row = mysql_fetch_array($result)); m