Jump to content

Query


phpcoder981

Recommended Posts

Either way, this is just a badly constructed sql query. Why are you using single quotes within single quotes in this instance? What do you want the output to be?

 

These should really be escaped:

 

'xx''xx''xx'

 

VALUES('$EMAIL','xx\'\'xx\'\'xx','$DOB_FULL')

 

Link to comment
https://forums.phpfreaks.com/topic/223177-query/#findComment-1153767
Share on other sites

From the mysql documentation (Literal values/Strings)-

Quoted strings placed next to each other are concatenated to a single string. The following lines are equivalent:

 

'a string'

'a' ' ' 'string'

 

Edit: And double single-quotes are treated as a literal single-quote in a string, depending on what and where you are doing this.

 

 

Link to comment
https://forums.phpfreaks.com/topic/223177-query/#findComment-1153769
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.