I've a textarea and would like to save the content in a mysql table each
time a user click on a form.
How can I do for avoiding error when the user put a " or a ' in the message,
or any other character that may cause problems.
My query is:
"insert into questions(UserI D,Question) values
(".$HTTP_POST_V ARS["USERID"].",'".$HTTP_POS T_VARS["QUESTION"]."')"
The problem is with QUESTION, that may have a ' in it, or ".
Bob
time a user click on a form.
How can I do for avoiding error when the user put a " or a ' in the message,
or any other character that may cause problems.
My query is:
"insert into questions(UserI D,Question) values
(".$HTTP_POST_V ARS["USERID"].",'".$HTTP_POS T_VARS["QUESTION"]."')"
The problem is with QUESTION, that may have a ' in it, or ".
Bob
Comment