View Single Post
  #2  
Old 08-11-2006, 03:11 PM
noah noah is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
noah is on a distinguished road
Default

Quote:
Originally Posted by daffy
can ireturn the value in this format?
"this is text message <BR>
this is text message 2 <BR>
this is text message 3"
yup, can do it with this code

select replace(
replace(message,concat(char(13),char(10)),char(10) )
,char(10),'<br>') as message
from daTable -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - not able to display the /r/n from mysql
View Single Post
  #2  
Old 08-11-2006, 03:11 PM
noah noah is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
noah is on a distinguished road
Default

Quote:
Originally Posted by daffy
can ireturn the value in this format?
"this is text message <BR>
this is text message 2 <BR>
this is text message 3"
yup, can do it with this code

select replace(
replace(message,concat(char(13),char(10)),char(10) )
,char(10),'<br>') as message
from daTable -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote