If & Elseif Not Working Right & Confused

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

Re: [Rusty] If & Elseif Not Working Right & Confused

By zip222 - December 29, 2010

I think you are missing the 'foreach'. if you go back to the original code that you got from code generator, you will see a foreach statement that needs to appear before you the any of the $record variables. you will also need to include the 'endforeach' after.

<?php foreach ($YOURSECTIONRecords as $record): ?>

and...

<?php endforeach ?>