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/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to remove sigle quotes saved in database field. (/showthread.php?tid=55889)



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.