Thanks for responding Rob!
I'm not sure how to set the variable since it differs from image to image.
Can I do something like this? (-would like to make the B a button using css.)
<?php if (!empty($row_rs_as_2014['scan'])) { echo "<b><a href=\"{$row_rs_as_2014['scan']}\" class=\"button\">B</a></b>";} ?>
Think I'm on to something, but the syntax is wrong.