EllisLab text mark
Advanced Search
     
How to remove sigle quotes saved in database field.
Posted: 15 November 2012 02:51 AM   [ Ignore ]
Joined: 2012-11-15
1 posts

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!

 
Posted: 15 November 2012 06:10 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-28
2435 posts

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