Welcome Guest, Not a member yet? Register   Sign In
Using escape_str() or escape() produces a backslash \n character rather than \r\n
#2

[eluser]InsiteFX[/eluser]
If you use Active Record you do not have to worry about this, Active Record will escape everything automatically.
Code:
$sql = "INSERT INTO table (title) VALUES('".$this->db->escape_str($title)."')";

InsiteFX


Messages In This Thread
Using escape_str() or escape() produces a backslash \n character rather than \r\n - by El Forum - 04-05-2011, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB