Sure, here's what I've got now.
At the Top:
<?php
require_once "/home2/travisbr/public_html/cms_con/lib/viewer_functions.php";
list($photosRecords, $photosMetaData) = getRecords(array(
'tableName' => 'photos',
));
?>
In <head>: <script src="/js-global/FancyZoom.js" type="text/javascript"></script>
<script src="/js-global/FancyZoomHTML.js" type="text/javascript"></script>
In the <body> section:
<script src="/js-global/FancyZoom.js" type="text/javascript"></script>
<script src="/js-global/FancyZoomHTML.js" type="text/javascript"></script>
The rest: <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
<h1>Photo Gallery</h1>
<?php foreach ($photosRecords as $record): ?>
Record Number: <?php echo $record['num'] ?><br/>
Album Name: <?php echo $record['album'] ?><br/>
Date: <?php echo date("D, M jS, Y g:i:s a", strtotime($record['date'])) ?><br/>
<!-- For date formatting codes see:
http://www.php.net/date -->
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>
<!-- STEP 2a: Display Uploads for field 'upload' (Paste this anywhere inside STEP2 to display uploads) -->
<!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
<?php foreach ($record['upload'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a>
<?php endif ?>
<?php endforeach ?>
<!-- STEP2a: /Display Uploads -->
<hr/>
<?php endforeach; ?>
<?php if (!$photosRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
<!-- /STEP2: Display Records -->
The code that caused a problem is this, that was posted in this thread:
<!-- STEP 2a: Display Uploads for field 'pictures' -->
<?php foreach ($photosRecord['pictures'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>"/>
<img src="<?php echo $upload['urlPath'] ?>" width="100" border="0"/></a>
<?php elseif ($upload['isImage']): ?>
<a href="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>"/>
<img src="<?php echo $upload['urlPath'] ?>" width="100" border="0"/></a>
<?php else: ?>
<!-- STEP2a: /Display Uploads --> What I've got now on the page is that the thumbnails are being displayed, but they do not expand to the larger image. Here's a link to the page: http://www.travisbruce.com/gallery.php Thanks for your help. FtF