You are here: Re: [PHP] Retrieve Data Formated from Text field « PHP « IT news, forums, messages
Re: [PHP] Retrieve Data Formated from Text field

Posted by Linda H on 10/29/05 23:36

> The data is inserted into db in this way:
> "Hello,
> This is a sample of first line.
> This is another paragraph, blah
>blah blah
>Bye"
> But the result is in one paragraph:
> "Hello, This is a sample of first line.
>This is another paragraph, blah
>blah blah Bye"

It sounds as if your database record includes a carriage return or new line
character (\n), which is not recognized in html (except using the <pre> tag.

You need to replace the new line with an html <p> tag. You might want to
store each paragraph in a different database record (make a table for the
text. It will include a key that connects it to the main record, the text,
and a sequence number that tells you the order in which the paragraphs
should be displayed).

Linda H

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация