tiamat2012
Programmer
Hey all,
My client has requested that I allow certain symbols in the forms. The only problem is that if I try to insert the strings with symbols such as an apostrophe or a quote, it will cut off the MySQL statement (using a MySQL database).
My solution is to change the code to special characters (like instead of a " mark it would be " so it is displayed the same way but not processed in the MySQL.)
Also I was wondering if there were a list of symbols that affect PHP/MySQL (like I know ", ', $) but if it was only a few then I would only have to do those specific ones.
Does anyone have a good basis for doing this or any useful functions that would help?
-Kerry
My client has requested that I allow certain symbols in the forms. The only problem is that if I try to insert the strings with symbols such as an apostrophe or a quote, it will cut off the MySQL statement (using a MySQL database).
My solution is to change the code to special characters (like instead of a " mark it would be " so it is displayed the same way but not processed in the MySQL.)
Also I was wondering if there were a list of symbols that affect PHP/MySQL (like I know ", ', $) but if it was only a few then I would only have to do those specific ones.
Does anyone have a good basis for doing this or any useful functions that would help?
-Kerry