Jump to content

[SOLVED] if not empty show image with link


hollylala

Recommended Posts

It goes without saying, I'm new to php and need help.

 

This is what I've got working:

 

<div id="table3">

            <a href="http://<?php echo $row_Master['website']; ?>" target="blank"><img src="assets/iconW.jpg" width="20" height="20" alt="website" class="icon"/></a>

 

This shows a small icon which links to the url of the given record. I'd like the icon to show only if the record has a url....and not show if the website field is empty.

 

big thanks in advance

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.