Asi
Código PHP:
<?php
if(trim($row_Datos2bachmatesejercicios['intHasta'])!="" && trim($row_Datos2bachmatesejercicios['intDe'])!=""){ //SI LOS DOS TIENEN DATOS, SE MUESTRA ?>
<a href="2bachmatesejerciciossol.php?recordTema=<?php echo $row_Datos2bachmatesejercicios['intTema']; ?>&recordintDe=<?php echo $row_Datos2bachmatesejercicios['intDe']; ?>"<?php if ($row_Datos2bachmatesejercicios['intHasta'] >= $row_Datos2bachmatesejercicios['intDe']) {?> class="boton" target="_blank" <?php } ?> > <?php if($row_Datos2bachmatesejercicios['intHasta'] >= $row_Datos2bachmatesejercicios['intDe']) echo $row_Datos2bachmatesejercicios['intDe']; ?></a>
<?php } ?>