rswyatt
12-20-2006, 09:38 PM
I'm submitting a form that contains the content for a page...
I'm using (to avoid SQL injection attacks) $mysqli->real_escape_string($var).
Other forums have advised enclosing that with stripslashes() to avoid multiple slashes.
That is not the problem - the problem is that the real_escape_string function is adding a \n\r to my input...
How do I get these new lines out of here?
I'm using (to avoid SQL injection attacks) $mysqli->real_escape_string($var).
Other forums have advised enclosing that with stripslashes() to avoid multiple slashes.
That is not the problem - the problem is that the real_escape_string function is adding a \n\r to my input...
How do I get these new lines out of here?