Thank you so much for this nice, clean code block. It works perfectly and really clarifies for me the relationship of the php tags to the html.
You rock!
#################################
<!-- THUMBNAILS BEGIN -->
<table border="0" cellpadding="8" cellspacing="0" width="100%"><tr>
<?php if ($listDetails['noRecordsFound']): ?>
<td>No records were found!</td>
<?php endif ?>
<?php foreach ($listRows as $record): ?>
<?php foreach (getUploads($options['tableName'], 'uploads', $record['num']) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<td valign="top">
<a href="<?php echo $record['_link'] ?>">
<?php echo $upload['info1'] ?><br/>
<img src="<?php echo $upload['thumbUrlPath'] ?>"
width="<?php echo $upload['thumbWidth'] ?>"
height="<?php echo $upload['thumbHeight'] ?>" /></a>
</td>
<?php $maxCols=2; if (@++$count % $maxCols == 0): ?>
</tr><tr>
<?php endif ?>
<?php endif ?>
<?php endforeach ?>
<?php endforeach ?>
</tr></table>
<!-- THUMBNAILS END -->
################################
Happy Interactive Tools product user since 1999