My PHP knowledge is not very good and I am already trying things for hours without any results. The problem is this. I have a echo with a hard coded url:

Code:
echo "<a class='fancybox' data-fancybox-group='gallery' href='http://diem.sothenwhat.com/museum_photos/photos/" . $row->photo . "'><img src='http://diem.sothenwhat.com/museum_photos/carousel/" . $row->photo . "' /></a>";
For certain reasons I need the href property: http://diem.sothenwhat.com/museum_photos/photos/ to come from the database! So in the database I created a new field called link.and placed the http://diem.sothenwhat.com/museum_photos/photos/ into that field and changed the echo into:

Code:
echo "<a class='fancybox' data-fancybox-group='gallery' href='$link" . $row->photo . "'><img src='http://diem.sothenwhat.com/museum_photos/carousel/" . $row->photo . "' /></a>";
but that isn't working. Can someone please help me out with this?

Thank you in advance!!!!!!