Trying to do some dynamic image sourcing but I'm stuck. Probably pretty basic stuff, but I'm new to this.
This works:
<img src="<?php bloginfo('template_url');?>/images/LakeArnaulMap-<?php the_ID();?>.png"/>
Why doesnt this:
<?php
$my_img = '<img src="' . bloginfo('template_url') . '/images/MyImage' . the_ID() . '.png"/>';
echo $my_img;
?>

the_ID()codex.wordpress.org/Function_Reference/the_ID – Chris_O Feb 11 at 18:34get_bloginfo()andget_the_ID()to return the result instead of print it. – Max Yudin Feb 11 at 18:34