kevinkorb Posted January 19, 2007 Share Posted January 19, 2007 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 More sharing options...
pocobueno1388 Posted January 19, 2007 Share Posted January 19, 2007 Errr....not sure if there is another way of doing it, but I don't see anything wrong with running it through the str_replace() function. Link to comment https://forums.phpfreaks.com/topic/34822-mysqli_reql_escape_stringfrom_textarea/#findComment-164140 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.