$result2 = $db->query($sql2); if ($result2 != 1) { $resultado['B_PROGRAMA_EVALUACION_BIPS'] = $resultado['B_PROGRAMA_EVALUACION_BIPS'] + 1; }