I am passing this via POST:
SELECT * FROM tbltesting WHERE (upper(title) LIKE '%2006%') OR (upper(category) LIKE '%2006%')
But when I echo it after being passed, it looks like this:
query: SELECT * FROM tbltesting WHERE (upper(title) LIKE \'%2006%\') OR (upper(category) LIKE \'%2006%\')
Obviously this doesn't work because of the extra slashed. How do I prevent this from happening?
2007-08-06
09:09:49
·
6 answers
·
asked by
brisbane15
2
in
Computers & Internet
➔ Programming & Design
Not sure what 'pot' is that your referring too. I need to pass this via POST, and I know there is a way to manipulate the sting so it won't auto escape certain variables...but I can't think what it is.
2007-08-06
09:22:41 ·
update #1
EWANG - do not have access to modify server settings
AnalProgrammer - Not using the URL to pass variable, plus, it would strip out % initially, which I need in the end
Sonny - Not sure what you are getting at, the issue is that the slashes are inserted after the pass, thus making the query unusable. I want it to pass and be identical to the original value.
2007-08-06
09:35:36 ·
update #2