Jump to content

mysqli_reql_escape_string($from_textarea)


kevinkorb

Recommended Posts

From a text area when I use
$myData = mysqli_real_escape_string($myData);

It converts all my line breaks to actual text '\r\n'

Any way to prevent this or recover from this.

do I really have to run my data through
[code=php:0]
$string = str_replace('\r\n', '
', $string);
[/code]
Link to comment
https://forums.phpfreaks.com/topic/34822-mysqli_reql_escape_stringfrom_textarea/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.