Here in solution 1 there is a small typo error
?<php echo " <a href=''>
".$name."</a>" ?>
Which is
<?php echo " <a href=''>".$name."</a>" ?>
Instead of this you can do like this
<a href="<?php echo $value ?>"><?php $ name?></a>
As you have mentioned $ value is the address it should be the href and $ name is the display value
Hope it helps