Connecting php with html Code doesn't work

sosutlm72

New Member
since an Image says more than Word here you go:
TP2E6.png
I basically just want the 'IMDB' Label, if there is a Link inside the Article's Metadata otherwise it shouldn't be visible.\[code\]<?php $rating = get_post_meta($post->ID, 'Rating', true); ?><?php $imdblink = get_post_meta($post->ID, 'IMDb-Link', true); ?><?php if($rating==""){ echo ""; if($imdblink=="") {echo "";} } else { ?><div style="float: right"><a href="http://soundso.de<?php echo $imdblink; ?>">IMDb <?php echo $rating; ?>/10</a> </div>\[/code\]
 
Top