$sql_hist_doc ="Update historial_documentos set id_estado={$estado} where id_documento = ".$this->_id; $sql_hist_ate ="Update historial_atencion set id_estado={$estado} where id_documento = ".$this->_id; $c_estado =newEstado($estado); $s_ma ="Update documentos_reporte SET est...