HTML and PHP - Help with syntax

I can’t seem to get this to function correctly because I am not sure where to put the closing curly braces.

<?php if(isset($attr['Material']) && !empty($attr['Material'])){?> <a href="<?php global $post; $material = get_post_meta($post->ID, 'Material', true); echo wp_get_attachment_url($material); ?>">Download</a>

[php]<?php if(isset($attr['Material']) && !empty($attr['Material'])){?>
Download

<? } ?>[/php]

Worked out just right. Thanks!!

Sponsor our Newsletter | Privacy Policy | Terms of Service