Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling formatted text out of MySQL 1

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I think this issue is PHP or HTML related so I'm posting it here and not at MySQL.

I have formatted text in a MySQL field. To start with the format is just paragraphs. I need to display the text in its paragraph form in PHP. I've tried using <PRE> and that separates the paragraphs, but it doesn't format them to fit on a page. By that I mean that each paragraph is printed on one long line. If I use <BLOCKQOUTE> it fits it to a page but it doesn't separate the paragraphs.

Ultimately, I'll want to store and retrieve text formatted with font and bold, etc.
 
I always make progress right after posting a question.

I got the text to come out formatted in paragraphs using nl2br().

Now I'd like to see if I can input and then display formatted text with sections of bold, centering, italics, etc. Help on that would be appreciated.
 
consider using a wysisyg plugin like tinymce.
 
That works perfectly. Exactly what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top