$sqlGCat="select * from sahitya_gallery_data_tag where tagid_ref='".$tlink."' order by tagname";
$resGCat=mysqli_query($conn,$sqlGCat);
while($rowGCat=mysqli_fetch_array($resGCat))
{
//$_SESSION['urllink']="rachana-image/".$urllink;
$rchimageid = $rowGCat['galryid_reff'];
$sqlGPh="select * from sahitya_gallery_data where glryid='".$rchimageid."' order by glryid desc";
$resGPh=mysqli_query($conn,$sqlGPh);
while($rowGPh=mysqli_fetch_array($resGPh))
{
$iPath1="rachna-images/".$rowGPh['filename'];
?>