Posts: 6
Threads: 2
Joined: Aug 2017
Reputation:
0
Sorry, got a really basic question on escape_str, should it be adding backslashes for each apostrophe? Whereas query builder won't?
Posts: 4,450
Threads: 103
Joined: Oct 2014
Reputation:
146
You use it on data that your going to be saving into a database.
MySQL escape string is depreciated.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 4,450
Threads: 103
Joined: Oct 2014
Reputation:
146
Yes, it should because it is interpreted as a single quote mark.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )