I am using PHP and MySQL as main languages while TinyMCE for the WYSIWYG feature. The problem is I get a MySQL error everytime I try to place an apostophe on the text editor. the error appears to be like this:
An error occured upon executing query. Please notify the web developer about this error.
NOTE: 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 definitely a program for you.
International Language Academy Manila (' at line 1
The statement leads me to this set of code:
function ExecuteQuery($strquery){
$rs = mysql_query("$strquery") or
die('<br><br>An error occured upon executing query.<br>Please notify the web developer about this error.<br><br>NOTE: '.mysql_error());
return $rs;
}
But i can't seem to understand the problem. Need some help here. Thank you so much.