IF statement, field empty
            3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 13, 2012   (RSS)          
By dlsweb - December 12, 2012
          If the field is empty, how would I code not to show
<a href="<?php echo htmlencode($record['link_for_more']) ?>">See More</a>
tks, Larry
                                        
        <a href="<?php echo htmlencode($record['link_for_more']) ?>">See More</a>
tks, Larry
By dlsweb - December 12, 2012
          <?php if ($record['link_for_more']): ?> <a href="<?php echo htmlencode($record['link_for_more']) ?>">See More</a>
<?php endif ?>
        <?php endif ?>
          Hi Larry,
That is what I was going to suggest, is it working correctly now?
Thanks
                          
        That is what I was going to suggest, is it working correctly now?
Thanks
      Greg Thomas
PHP Programmer - interactivetools.com
                    PHP Programmer - interactivetools.com