  <div class="row">

        <?php 		
		foreach($galleryphotos as $photo){?>

        

         <div class="col-md-3 col-sm-6">

                        <div class="project-wrapper">

                            <img src="./utility/processImage.php?imageName=<?php echo urlencode($photo->filename); ?>&w=270&h=250&mod=3&type=2&<?php echo date("HisdmY");?>">





                            <div class="hover-view">

                                <a href="#" class="pull-right"><i class="fa fa-link" aria-hidden="true"></i></a>

                                <h4><a href="#" onclick="gotolink_photo('photos','<?php echo $photo->gal_id;?>')"><?php echo $photo->title?></a></h4>

                                

                            </div>

                        </div>

                    </div>

                         

                    <?php }?>

                    </div>

        

<form name="frm_photo" id="frm_photo" method="post">

	<input type="hidden" name="gallery_id" id="gallery_id" />

</form>

<script>

function gotolink_photo(u,gallery_id)
{
	document.frm_photo.gallery_id.value=gallery_id;
	document.frm_photo.action = u;
	document.frm_photo.submit();
}

</script>

