If Last Image

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 8, 2010   (RSS)

Re: [jtedescojam] If Last Image

By Dave - December 8, 2010

Hi jtedescojam,

Give this a try:

<?php
$output = '';
foreach ($home_page_image_rotaterRecord['photo'] as $upload) {
$output .= '["' .$upload['urlPath']. '", "", "", "' .$upload['info1']. '"],';
}
$output = rtrim($output,','); // remove trailing comma
print $output;
?>


Hope that helps, let me know if it works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] If Last Image

yeah that'll do it. Thanks Dave.
John Tedesco

Creative Director



JAM Graphics