0) return true; return false; } if($_REQUEST[prjid]) { print""; print""; print"
Project: ".getprojectDetails($_REQUEST[prjid],"galleryhead")."
".getprojectDetails($_REQUEST[prjid])."
"; $sql="select * from grouppictures where galleryheadid=$_REQUEST[prjid]"; $res=mysql_query($sql); $td=0; print""; while($row=mysql_fetch_array($res)) { if($td>5){print"";$td=0;} $ext_arr=explode(".",$row[picname]); if($ext_arr[1]=="pdf" || $ext_arr[1]=="PDF") $im_code=""; else $im_code=""; print""; $td++; } print"
".$im_code; //if($row[picdesc]) print"".getprojectDetails($row[galleryheadid],"galleryhead")."
".$row[picdesc]."
"; print"
"; } elseif($_REQUEST[ct]) { $sql="select * from grouppictures where galleryheadid in(select galleryheadid from galleryheads where category =\"$_REQUEST[ct]\") group by galleryheadid"; $res=mysql_query($sql) or die(mysql_error()); // print $sql; while($row=mysql_fetch_array($res)) { $ext_arr=explode(".",$row[picname]); if($ext_arr[1]=="pdf" || $ext_arr[1]=="PDF") $im_code="
"; else $im_code="

".getprojectDetails($row[galleryheadid],"galleryhead"); print""; print""; print"
".$im_code; //if($row[picdesc]) print"".getprojectDetails($row[galleryheadid],"galleryhead")."
".$row[picdesc]."
"; print"
Project: ".getprojectDetails($row[galleryheadid],"galleryhead")."".getprojectDetails($row[galleryheadid])."
"; } } else { $sql="select * from grouppictures group by galleryheadid"; $res=mysql_query($sql); $td=0; print""; while($row=mysql_fetch_array($res)) { if($td>5){print"";$td=0;} $ext_arr=explode(".",$row[picname]); if($ext_arr[1]=="pdf" || $ext_arr[1]=="PDF") $im_code=""; else $im_code=""; print""; $td++; } print"
".$im_code; //if($row[picdesc]) print"".getprojectDetails($row[galleryheadid],"galleryhead")."
".$row[picdesc]."
"; print"
"; } ?>