Using the code:
<tr>
<?php if $row_rsDirectory['Photo1'] != "" { ?>
<td>
<a href="images/uploads/<?php echo $row_rsDirectory['Photo1']; ?>" rel="lightbox" title=""><img src="images/uploads/thumbnails/<?php echo $row_rsDirectory['Photo1']; ?>" /></a></td>
<?php } ?>
<?php if $row_rsDirectory['Photo2'] != "" { ?>
<td><a href="images/uploads/<?php echo $row_rsDirectory['Photo2']; ?>" rel="lightbox" title=""><img src="images/uploads/thumbnails/<?php echo $row_rsDirectory['Photo2']; ?>" /></a></td>
<?php } ?>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
I get an error: Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in C:\xampp\htdocs\affiancedv2\directory\index.php on line 222