if ($countposts) { $DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'"); }