$db->query_write("UPDATE " . TABLE_PREFIX . "post SET fieldname = " . $_POST['fieldname'] . " WHERE postid = " . $postinfo['postid'] . "");