looks like you have the code on 2 lines.
change:
<a href="http://
<?php echo(str_replace(array("http://","https://"), "", $SponsorLogos->getColumnVal("SponsorLogosURL"))); ?>
" target="_blank">
to:
<a href="http://<?php echo(str_replace(array("http://","https://"), "", $SponsorLogos->getColumnVal("SponsorLogosURL"))); ?>" target="_blank"
so it's all one line