I want to put a image slider that will pull images from my single record with multiple uploads for my main page.
I feel like I'm missing something simple!
I get this error (Notice: Undefined variable: record in...)
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
// load records
list($mainRecords, $mainMetaData) = getRecords(array(
'tableName' => 'main',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$mainRecord = @$mainRecords[0]; // get first record
<div class="flexslider">
<ul class="slides">
<?php foreach ($record['upload'] as $upload): ?>
<li>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
</li>
<?php endforeach ?>
</ul>
</div><!--end:flexslider-->