Photo Gallery image accredited to person in staff, thereby the photo shows up on staff person's details page using 'where' LIKE

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 11, 2013   (RSS)

By gregThomas - July 11, 2013

Hi Zick,

If the drop down is a single select item as opposed to a multi select, then I think this might be the correct method:

<?php
        $inString = $staff_directoryRecord['title'];
        list($gallerySliderRecords, $gallerySliderMetaData) = getRecords(array(
        'tableName'   => 'gallery',
          'where'       => "copyright = '$inString'",
          'loadUploads' => true,
          'allowSearch' => false,
        ));
?>

I think the problem might be that you're using  $staff_directoryRecords as opposed to $staff_directoryRecord. Are any errors being returned when you run the code? Would it be possible to include the code the entire page?

Cheers!

Greg

Greg Thomas







PHP Programmer - interactivetools.com