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

[eluser]InsiteFX[/eluser]
Correct, Active Record handles the escaping automatically.
Code:
// you must use an array like this!
$data = array('title' => 'title');

$this->db->insert('table', $data);
Note: All values are escaped automatically producing safer queries.

InsiteFX


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



Theme © iAndrew 2016 - Forum software by © MyBB