Jump to content

dmc2211

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dmc2211's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Got it thanks for all your help!!
  2. [quote author=printf link=topic=111905.msg453804#msg453804 date=1161182093] just use [b]nl2br()[/b], when you show the result coming out of the database! [/quote] Where should I display this piece of code? I have a recordset and this pulls the description from the database.  Before the text was submitted to the database it had line breaks.  When the recordset pulls this from the database it loses these line breaks and looks like a paragraph.  I'm sorry all this is very new to me Thanks
  3. Hi, I have set up a CMS to add properties.  There is a text area box to submit specifictions about the property. When I add the specifications to the text area it looks like this: [b]Entrance Porch: :-Wooden floor. Entrance Hall:- Wooden floor. Lounge: 17' 5'' x 11' 11'' 5.31m x 3.63m. Wooden floor. Pine fireplace with cast iron inset. TV Point. Recess lighting.[/b] The problem is when it submits to the database it eliminates the returns and when it displays from the database it looks like a paragraph e.g. [b]Entrance Porch:-Wooden floor.Entrance Hall:- Wooden floor.Lounge: 17' 5'' x 11' 11'' 5.31m x 3.63m. Wooden floor. Pine fireplace with cast iron inset. TV Point. Recess lighting.[/b] If I add "break tags"to the text before submitting to the database this displays correctly but I dont want to add these tags everytime I submit data to the database. I was looking at str_replace().  Basically I would like to replace anywhere in the text that has ":-" with "break tags" Any tips?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.