exactly where the code goes depends on where you want to use it.
lets take the detail page as an example.
the code to display the First name is:
<tr>
<th class="WADADataTableHeader">FirstName:</th>
<td class="WADADataTableCell"><?php echo($row_WADArick['FirstName']); ?></td>
</tr>
to suppress the first name row from being created if the first name is empty or null, you add the if statement around it:
<?php if(($row_WADArick['FirstName'] != "" ) && ($row_WADArick['FirstName'] != NULL)) { ?><tr>
<th class="WADADataTableHeader">FirstName:</th>
<td class="WADADataTableCell"><?php echo($row_WADArick['FirstName']); ?></td>
</tr><?php } ?>
or if you wish to suppress the last name change:
<tr>
<th class="WADADataTableHeader">LastName:</th>
<td class="WADADataTableCell"><?php echo($row_WADArick['LastName']); ?></td>
</tr>
to:
<?php if(($row_WADArick['LastName'] != "" ) && ($row_WADArick['LastName'] != NULL)) { ?><tr>
<th class="WADADataTableHeader">LastName:</th>
<td class="WADADataTableCell"><?php echo($row_WADArick['LastName']); ?></td>
</tr><?php } ?>