CodeIgniter Forums

Full Version: Unescaping results Active Record
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]spherop[/eluser]
I am sure the is patently obvious/basic. I am using AR and just basic db->insert and db->get.

My insert is automatically escaping, \' which seems cool ...so when using the get - since it's not unescaping the results, should it be?...or is there a recommended way of unescaping... ?

El Forum

[eluser]spherop[/eluser]
again apologies ... if this is CI Day 1, but i am still a bit confounded. AR seems to escape everything going in by default, but not coming out? What's best approach? Everything right now is coming out "John\'s Car" ...."Jane\'s Boat" ...

thx