Forums

PHP Echo include code. (2 posts)

  1. neoian2
    Member
    Posted 4 years ago #

    <div id="sidebar">
    <?php if ( is_page('9') || is_page('2') || is_page('10')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page') ) : ?>
    <?php endif; ?>'); } 
    
    elseif ( is_page('7')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bryant Shrops') ) : ?>
    <?php endif; ?>'); }
    
    elseif ( is_page('8')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('A&B Percherons') ) : ?>
    <?php endif; ?>'); }
    ?>
    </div>

    Results in an unexpected t_string. I know this code is not right and echo is probably not what i need to use. Any help is appreciated.

  2. moshu
    Member
    Posted 4 years ago #

    Better explain WHAT you want to do - and somebody will jump in...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.