unexpected T_ENDFOREACH

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 8, 2008   (RSS)

Re: [justritedesign] unexpected T_ENDFOREACH

By Dave - April 8, 2008

Hi Michael,

It's the extra <?php if ($upload['extension'] == 'wmv'): ?> tag you have on the end. It doesn't have a closing <?php endif ?> tag. You can either add a <?php endif ?> before the first endforeach or just replace the if tag with this:

<?php if ($upload['extension'] != 'wmv') { continue; } ?>

Which basically says, if it's not a wmv file, continue with the next one and skip this one.

Hope that helps. Let me know if you need more detail with the code or anything like that.
Dave Edis - Senior Developer
interactivetools.com