# Maintaining \\n characters

**URL:** https://forum.kirupa.com/t/maintaining-n-characters/220024
**Category:** programming
**Created:** [March 21, 2007, 11:57pm UTC](https://forum.kirupa.com/t/maintaining-n-characters/220024 "2007-03-21T23:57:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [March 21, 2007, 11:57pm UTC](https://forum.kirupa.com/t/maintaining-n-characters/220024/1 "2007-03-21T23:57:58Z")

</div>

I have a string in flash that contains  
to indicate new lines.

When i pass it to a php page I use mysql\_real\_escape\_string on the variable, and when i echo it out before inserting into the mysql database, the string reads something like

"lorem ipsum dolor sit amet  
bla bla bla etc  
"

so i insert into the db and all seems well.

but when another script pulls the variable back out, it returns

"lorem ipsum dolor sit amet  
bla bla bla etc  
"

so it actually inserts the new lines. how do i stop this?
