[PHP-DB] Display TEXT field value

2003-05-27 Thread John M.
Hello,

I have a message box, where user can write more lines of comment. I store it
in a mysql db in a TEXT field.
But if I use echo command to display the value of the field I become the
value without linebreaks. How can I display the value in the same style as
input was?

Thanks!

Example:
User write:
hello

hello

In database is:
hello
hello

But display with echo I see:
hellohello



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Display TEXT field value

2003-05-27 Thread jeffrey_n_Dyke

if i'm understanding you correctly, you're looking for this???

nl2br()

http://www.php.net/manual/en/function.nl2br.php


   
 
John M.  
 
[EMAIL PROTECTED]   To: [EMAIL PROTECTED] 
  
il.hu   cc:   
 
 Subject: [PHP-DB] Display TEXT field 
value 
05/27/2003 
 
03:30 PM   
 
   
 
   
 




Hello,

I have a message box, where user can write more lines of comment. I store
it
in a mysql db in a TEXT field.
But if I use echo command to display the value of the field I become the
value without linebreaks. How can I display the value in the same style as
input was?

Thanks!

Example:
User write:
hello

hello

In database is:
hello
hello

But display with echo I see:
hellohello



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php