This is my query :
$cat=trim($_POST[category]);
$sq = "INSERT INTO newent (name, title, memo, category) VALUES ('$_POST[name]', '$_POST[title]', '$_POST[memo]', '$cat')";
The error I get is :
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 't know about it at line 1
If the memo field has a ' (example don't) as a part of its text I get this error message. In the above error message 't is part of the text don't.
Help ... Anyone .... 
|