CodeIgniter Forums
How to remove sigle quotes saved in database field. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to remove sigle quotes saved in database field. (/thread-55889.html)



How to remove sigle quotes saved in database field. - El Forum - 11-14-2012

[eluser]Unknown[/eluser]
Hi!

I am saving my data into the database using $this->db->escape(); function this saves the data enclosed in sigle quotes. When I retrieve the data I want to remove this quote from the data.
Any help will be much appreciated.

Thanks!


How to remove sigle quotes saved in database field. - El Forum - 11-15-2012

[eluser]Aken[/eluser]
How are you using escape()? You should show the code being affected. Because you might be unnecessarily double-encoding your data.