Possible Duplicate:
Why string with single quotes raises error when inserted in DB?
MySQL error when inserting data containing apostrophes (single quotes)?
Whenever I put single quotes (' ') in a textarea, I always get the error
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 'test'','1351029587','10/23/2012','0','0','1492815560','0')' at line 1
I've inserted an html remove function:
$title = html_remove($title);
$body = html_remove($body);
function html_remove($input) {
$old = array('<','>');
$new = array('<','>');
$input = str_replace($old, $new, $input);
return $input;
}
An yes, $title and $body are valid and working variables.
$body = $_POST['body'];
$title = $_POST['title'];
Not sure if that's exactly how you do it, but that's pretty much all I got.