[PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
I am using a SELECT statement to grab all items from a database table and while looping through the results I am connecting the fields with tabs and adding a new line at the end of the row to create a tab delimited file. On one field I do a nl2br in order to preserve the spacing in the field.

Re: [PHP] Hidden new line markers?

2003-03-24 Thread CPT John W. Holmes
] Hidden new line markers? I am using a SELECT statement to grab all items from a database table and while looping through the results I am connecting the fields with tabs and adding a new line at the end of the row to create a tab delimited file. On one field I do a nl2br in order to preserve

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
it down to what was causing the issue. Jeff - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:03 PM Subject: Re: [PHP] Hidden new line markers? nl2br() doesn't remove the newlines, it simply adds

Re: [PHP] Hidden new line markers?

2003-03-24 Thread CPT John W. Holmes
The data is being entered into a textarea and is being stored as it is entered but with an addslashes right before insertion. On the extract I am doing the following: $row[description] = stripslashes($row[description]); You don't have to use stripslashes() on data coming out of a database

Re: [PHP] Hidden new line markers?

2003-03-24 Thread Jeff Lewis
PROTECTED] Sent: Monday, March 24, 2003 3:36 PM Subject: Re: [PHP] Hidden new line markers? The data is being entered into a textarea and is being stored as it is entered but with an addslashes right before insertion. On the extract I am doing the following: $row[description