Welcome Guest, Not a member yet? Register   Sign In
Quotes in query
#4

[eluser]ZioN[/eluser]
I'm running version 2.1.3.

I'm creating a string from an array like this:

Code:
$var = implode("', '", $Zipcodes);

This results in this query:

Code:
SELECT * FROM (`TABLE`) WHERE `Zipcode` IN ('0001\', \'0002\', \'0003')

Why does codeigniter escape it?


Messages In This Thread
Quotes in query - by El Forum - 10-21-2013, 01:18 AM
Quotes in query - by El Forum - 10-21-2013, 02:17 AM
Quotes in query - by El Forum - 10-21-2013, 02:40 AM
Quotes in query - by El Forum - 10-21-2013, 03:50 AM
Quotes in query - by El Forum - 10-21-2013, 05:00 AM
Quotes in query - by El Forum - 10-21-2013, 05:02 AM
Quotes in query - by El Forum - 10-21-2013, 05:16 AM
Quotes in query - by El Forum - 10-21-2013, 05:28 AM
Quotes in query - by El Forum - 10-21-2013, 05:36 AM
Quotes in query - by El Forum - 10-21-2013, 05:51 AM
Quotes in query - by El Forum - 10-21-2013, 06:10 AM
Quotes in query - by El Forum - 10-21-2013, 07:10 AM
Quotes in query - by El Forum - 10-21-2013, 07:15 AM
Quotes in query - by El Forum - 10-21-2013, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB