I had an error because of an apostrophe
I’m using real_escape, not sure why really this is an administrative input that is password protected to get access to eg. only people that work for the website can enter data (supposedly)
$description-of-problem = mysql_real_escape_string($dop);
dop = description-of-problem
Anyway I typed in “It’s a piece of…” and the error says
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘s a piece of ….’)’
I read about using ' but I don’t know how to apply it
here
[url]http://stackoverflow.com/questions/2428572/how-to-escape-single-quote