I have a textarea and am submitting the form it is in using AJAX using GET.
I want to preserve the whitespace, so i have a url that look a bit like
http://.../notes/insert/?user_id=12¬e_string=new /r/r/r/r/r/rline&account_id=
however when i use $this->db->insert();
it converts the query to
INSERT INTO `notes` (`user_id`, `note_string`, `account_id`)
VALUES ('12', 'new \\r\\r\\r\\r\\r\\rline', '')
(in the controller i then replace /r for \r)
Is there a way of escaping the escape? lol or just letting the \r through?
Thank you
Take a look at ‘Query Bindings’ in the CodeIgniter documentation http://codeigniter.com/user_guide/database/queries.html