Has anyone experienced problems with the USER COMMENTS snippet? Seems everytime I try to post a comment with a " ’ " in it I get a MySQL parsing error. What am I missing?
Ok. Seems the comment input just isn’t being cleaned. This fixes the problem:
After line:
$comment = str_replace($splitter,’’,$comment); // remove splitter from comment
Insert to clean:
$comment = addslashes($comment);
Peace!