Re: Text formatting

2003-09-28 Thread delz
Hi Tony, Thanks a lot. That solved my problem. Regards, Delz - Original Message - From: "Tony Thomas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 12:40 PM Subject: Re: Text formatting > That's because the browser doesn&

Re: Text formatting

2003-09-28 Thread Dan Nelson
In the last episode (Sep 29), delz said: > I'm using mysql and php but I'm having problems printing my output > using a browser. It's like this, i have a form and it has a text area > that has the following contents: > > Hello World. > Hello World. > Hello World. > > What happens is when I output

Re: Text formatting

2003-09-28 Thread Tony Thomas
On Sunday, September 28, 2003, at 11:40 PM, Tony Thomas wrote: nl4br(); will insert a tag after every new line so your browser can display it correctly. Ahem. I mean nl2br();

Re: Text formatting

2003-09-28 Thread Tony Thomas
That's because the browser doesn't read the line breaks without a tag at the end. All you need to do is this: echo nl2br($textarea); ?> nl4br(); will insert a tag after every new line so your browser can display it correctly. On Sunday, September 28, 2003, at 11:07 PM, delz wrote: Hi All

Text formatting

2003-09-28 Thread delz
Hi All, I'm using mysql and php but I'm having problems printing my output using a browser. It's like this, i have a form and it has a text area that has the following contents: Hello World. Hello World. Hello World. What happens is when I output the content using the php command echo, i.e. t

Re: Text formatting of articles pulled from database??

2003-03-19 Thread Henning Heil
Landy Atkinson wrote on 19.03.2003 18:14 ... echo "$article"; The text displays, but the paragraph breaks are gone and all the text is just run together into one long paragraph. Any suggestions on how to get $article to display and keep the white space between paragraphs that it ha

Re: Text formatting of articles pulled from database??

2003-03-19 Thread Stefan Hinz
Landy, > echo "$article"; > The text displays, but the paragraph breaks are gone and all the text > is just run together into one long paragraph. In PHP, you can use nl2br(), like: echo "".nl2br($article).""; This will replace "\n" (the new-line character that makes that line break in TEXTARE

Text formatting of articles pulled from database??

2003-03-19 Thread Landy Atkinson
I am setting u a simple article storage/retrieval system and have set up a MySQL database with a few VARCHAR fields for author, date, source and a BLOB field for article. I have also set up two pages, one for editing/adding new articles and a second one for viewing the articles. The adding/de

RE: text formatting

2002-06-30 Thread Peter Lovatt
--- > -Original Message- > From: Blue Presley [mailto:[EMAIL PROTECTED]] > Sent: 01 July 2002 02:33 > To: [EMAIL PROTECTED] > Subject: Re: text formatting > > > Thanks guys, nl2br works perfectly for preserving my new lines! I've > checked over the php s

Re: text formatting

2002-06-30 Thread Blue Presley
m: "Gurhan Ozen" <[EMAIL PROTECTED]> To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 7:35 PM Subject: Re: text formatting > Hi, > Yes there are number of functions you can use in php. I don't know what you >

Re: text formatting

2002-06-30 Thread Gurhan Ozen
al/en/ref.strings.php http://www.php.net/manual/en/ref.regex.php Gurhan - Original Message - From: "Blue Presley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 6:31 PM Subject: Re: text formatting > I'm using (and new to) PHP. any sugge

RE: text formatting

2002-06-30 Thread Peter Lovatt
tware --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -Original Message- > From: Blue Presley [mailto:[EMAIL PROTECTED]] > Sent: 30 June 2002 23:31 > To: [EMAIL PROTECTED] > Subject: Re: text

Re: text formatting

2002-06-30 Thread Blue Presley
ROTECTED]> Sent: Sunday, June 30, 2002 6:02 PM Subject: Re: text formatting > This should be handled before the data is even inserted into mysql. Have > your scripting language that you use in the form handle this to have the > resume formatted in the way you'd lik

Re: text formatting

2002-06-30 Thread Gurhan Ozen
y" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 5:34 PM Subject: text formatting > hello, > I have a web from that allows a user to submit a resume in text format. How > do i make mysql respect the formatting of the text document so that it is

text formatting

2002-06-30 Thread Blue Presley
hello, I have a web from that allows a user to submit a resume in text format. How do i make mysql respect the formatting of the text document so that it is pulled from the database as it was inserted? right now everything comes back as one paragraph. thanks, blue

Re: Text formatting for HTML output.

2001-10-04 Thread Christopher R. Jones
I define my textareas like this (perl cgi scritps): $portdesc Note the WRAP="SOFT" flag I then simply insert the users information into the mysql table and when it is called up in the HTML form, it retains its carriage returns. You do need to ensure that quotes are handled correctly. >Current

Re: Text formatting for HTML output.

2001-10-04 Thread Ian Barwick
On Thursday 04 October 2001 06:48, Neil Silvester wrote: > Currently I am using a standard field for information > input to the MySQL database. When I display the allready information in the > text fields to allow the user to manipulte the information, the formatting > includes any carrige return

Text formatting for HTML output.

2001-10-03 Thread Neil Silvester
Currently I am using a standard field for information input to the MySQL database. When I display the allready information in the text fields to allow the user to manipulte the information, the formatting includes any carrige returns that have been entered. However when I display the text usi