You are here: Re: Whitespace in textarea needs to remain when submitted to a database « All PHP « IT news, forums, messages
Re: Whitespace in textarea needs to remain when submitted to a database

Posted by guttyguppy on 01/20/06 00:13

$result = mysql(DB_NAME,"select content from thetable where
id='$id'",$link);

$content = stripslashes($row['content']);

echo $content;

Thatg's basically the code on the page where the content is pulled from
the database. You're right, in the database the liine breaks are there.
Where should I add the nl2br function? Thanks so much.

 

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

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