![]() |
how to disable escape queries - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to disable escape queries (/showthread.php?tid=8570) |
how to disable escape queries - El Forum - 05-22-2008 [eluser]dreamynsx[/eluser] By default Ci escape DB queries. How can I tell a given insert using CI db lib to not escape my inserts? I need to insert a javascript snippet thorugh a form and save it to db but it isn't saving it. how to disable escape queries - El Forum - 05-22-2008 [eluser]gtech[/eluser] I think you use $this->db->set and the third parameter FALSE stop CI escaping the value. Code: $this->db->set('field', 'value', FALSE); Quote:The CI documentation hope that resolves your problem. |