A) Have you tried turning TinyMCE off to make sure it's not doing it.
B) This is different code that the first piece you posted.
C) Change this:
PHP Code:
if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path))
{
mysql_query("INSERT INTO ".$_REQUEST['table']." VALUES (NULL,'".$_REQUEST['title']."','".$_REQUEST['body_text']."','".date("Y-m-d")."','".date("G:i:s")."','".basename($_FILES['image']['name'])."',1,'".$_SERVER['REMOTE_ADDR']."')");
}
to
PHP Code:
if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path))
{
$content = $_REQUEST['body_text'];
$content = mysql_escape_string($content);
mysql_query("INSERT INTO ".$_REQUEST['table']." VALUES (NULL,'".$_REQUEST['title']."','".$content."','".date("Y-m-d")."','".date("G:i:s")."','".basename($_FILES['image']['name'])."',1,'".$_SERVER['REMOTE_ADDR']."')");
}