I have a while loop that is going through and displaying an RSS icon for websites from database values. The while loop is working well but right now it is displaying an RSS icon for every site. I only want to display an icon if there is a RSS URL value in the database. Below is what I have coded thus far.
The error message I am receiving is: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
I believe I have a syntax error but am still learning so apologize if this is basic but I am again still learning. Thank you very much for your help.
<td><div class="centerit"><a href="
<?php if (isset($r['rssURL'])) {
echo $r['rssURL'] target='_blank'><img src='images/rssIcon.gif'></a>;
}
?>"</div></td>