<?php
if(isset($row['link']) && !empty($row['link']))
{
echo '<td><a href="'.$row['link'].'" target="_self\">Link name</a></td>';
}
?>
using this code removes the text Link name as well from the table, but i prefer to keep the text but unlinked when [‘link’] has empty value
any idea?
This logic will allow you to do much more than just output the name. Naturally, if all you need is outputting the name, then the cleaner way would be
down vote