• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
crlf in mysql

I have an emailtext model that I'm using to send emails, but keep the content in one place and replace the items that need replacing in the code. So i put a template into mysql and I'm having trouble getting carriage return line feeds out of the message.

When it was in code, I would have: "Line 1\r\nLine 2".

I need to be able to insert text into my database and have it come out like that. I put that text in and I just see actual \r\n in the text of the email.

How can I go about putting CRLF into mysql?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.