String returns no Carriage Return...

A

Anonymous

Guest
Hi,
sorry to bother you again.
I am working on a new project and thought you'd might have the right hint to get me further.
I connect to a SQL Database, the certain Field I echo is TEXT formated.
f.e.
echo "$row[4]";
The original String in the SQL-field has "Carriage Returns", the echoed String is just giving me a "line".. with no formating(<br>).
I tried some of the html-comands from php.net with no success..
do I have to do a "search and replace" with the string ?
Is there an easy way out ?
Thanks for your help
Frank
 
Look at the http://www.php.net/nl2br function, it may be what you are looking for.

Andrew
 
Back
Top