Re: [PHP] CSV Files

2008-10-23 Thread Andrew Ballard
On Thu, Oct 23, 2008 at 2:54 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-23 at 02:26 -0400, Andrew Ballard wrote: >> On Thu, Oct 23, 2008 at 2:22 AM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Wed, 2008-10-22 at 22:30 -0400, Andrew Ballard wrote: >> >> On Wed, Oct 22

Re: [PHP] CSV Files

2008-10-22 Thread Ashley Sheridan
On Thu, 2008-10-23 at 02:26 -0400, Andrew Ballard wrote: > On Thu, Oct 23, 2008 at 2:22 AM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-10-22 at 22:30 -0400, Andrew Ballard wrote: > >> On Wed, Oct 22, 2008 at 10:15 PM, Jason Todd Slack-Moehrle > >> <[EMAIL PROTECTED]> wrote: > >>

Re: [PHP] CSV Files

2008-10-22 Thread Andrew Ballard
On Thu, Oct 23, 2008 at 2:22 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Wed, 2008-10-22 at 22:30 -0400, Andrew Ballard wrote: >> On Wed, Oct 22, 2008 at 10:15 PM, Jason Todd Slack-Moehrle >> <[EMAIL PROTECTED]> wrote: >> > On Oct 22, 2008, at 6:58 PM, Stut wrote: >> > >> >> On 23 Oct 2008,

Re: [PHP] CSV Files

2008-10-22 Thread Ashley Sheridan
On Wed, 2008-10-22 at 22:30 -0400, Andrew Ballard wrote: > On Wed, Oct 22, 2008 at 10:15 PM, Jason Todd Slack-Moehrle > <[EMAIL PROTECTED]> wrote: > > On Oct 22, 2008, at 6:58 PM, Stut wrote: > > > >> On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote: > >>> > >>> Actually i am ending the row

Re: [PHP] CSV Files

2008-10-22 Thread Andrew Ballard
On Wed, Oct 22, 2008 at 10:15 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > On Oct 22, 2008, at 6:58 PM, Stut wrote: > >> On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote: >>> >>> Actually i am ending the row headers with a chr(10); // LINE FEED >> >> From the code you included

Re: [PHP] CSV Files

2008-10-22 Thread Robert Cummings
On Thu, 2008-10-23 at 02:58 +0100, Stut wrote: > On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote: > > Actually i am ending the row headers with a chr(10); // LINE FEED > > From the code you included in your original post... > > > echo "/n"; > > > There was no mention of chr(10). > >

Re: [PHP] CSV Files

2008-10-22 Thread Jason Todd Slack-Moehrle
Oh, I am not putting quotes around each field that i get from MySQL. There are no quotes in the data so that is good. Sorry I put "/n" and I meant to put chr(10). -Jason On Oct 22, 2008, at 6:58 PM, Stut wrote: On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote: Actually i am endin

Re: [PHP] CSV Files

2008-10-22 Thread Stut
On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote: Actually i am ending the row headers with a chr(10); // LINE FEED From the code you included in your original post... echo "/n"; There was no mention of chr(10). Outputting data in CSV format is not hard. Simply echo the header row

Re: [PHP] CSV Files

2008-10-22 Thread Jason Todd Slack-Moehrle
Hi Stut, Actually i am ending the row headers with a chr(10); // LINE FEED -Jason On Oct 22, 2008, at 5:12 PM, Stut wrote: On 23 Oct 2008, at 00:59, Jason Todd Slack-Moehrle wrote: After I right out the column headers do I have to put a '/n' to have it start a new line in the CSV file? I th

Re: [PHP] CSV Files

2008-10-22 Thread Stut
On 23 Oct 2008, at 00:59, Jason Todd Slack-Moehrle wrote: After I right out the column headers do I have to put a '/n' to have it start a new line in the CSV file? I think I do. A new line is \n not /n, and it must be in double quotes (") not single ('). -Stut -- http://stut.net/ -- PHP

Re: [PHP] CSV Files

2008-10-22 Thread Eric Butera
On Wed, Oct 22, 2008 at 7:59 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to take a record in MySQL and have my user get it as a CSV File. I am > OK with most everything, except when I create the CSV file, I write out the > column headers then I need to write out the