This would only show the row if there is a file specified in the database:
<?php
if ($WADAmrf_2021_details->getColumnVal("file1")) {
?>
<tr>
<td class="DetailsSublabel">File 1</td>
<td class="DetailsPage"><a href="upload/<?php echo($WADAmrf_2021_details->getColumnVal("file1")); ?>"><?php echo($WADAmrf_2021_details->getColumnVal("file1")); ?></a></td>
</tr>
<?php
}
?>