echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'class='gallery'>
<img src='".BASEDIR."images/photoalbum/album_".$data['album_id']."/".$data['photo_thumb1']."' style='margin:5px' align='left'></a>";