Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
Because i'am getting syntax errors of using ' because '%s' and if text is with ' 'hello'myname' i get syntax
Posts: 2,799
Threads: 95
Joined: Jun 2006
Reputation:
0
Then you need to figure out a way to strip or replace the use of ' within chat/text/strings
Basically you need to convert the ' being used to " or \' (i believe), BEFORE its fed into the mysql query
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Not using ' ' to make it a text will result in more problems as it will find those words invalid keywords.
You'll need to escape the strings so use mysql_format with '%e' specifier.
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
Can i use mysql_real_escape_string instead?
And i notice if i use mysql_format with %e specifier inquiries carried out and i self test if ' is escaped to \' i tried in phpmyadmin make query where text was with \' and query was not updated