$DB_site->query("UPDATE post SET attachment=0 WHERE postid='$postid'");
$DB_site->query("UPDATE post SET attachmentid=0 WHERE postid='$postid'");