cat_subpages; // echo $cat_subpages; if(trim($cat_subpages)!="") { $items=explode("|",$cat_subpages); $x=0; foreach($items as $key=>$value) { $itemSql="select * from tbl_gallery_items where item_id='".$value."' and item_status=1"; $itemRs=mysqli_query($con,$itemSql) or die("Mysql gallery item selection error : ".mysql_error()); if(mysql_num_rows($itemRs)>0) { while($itemObj=mysql_fetch_object($itemRs)) { //echo $itemObj->item_image; $itemArr[$x]=$itemObj; $x++; } } } } else { $itemdefaultSql="select * from tbl_gallery_items where item_status=1 and item_is_default=1 order by img_orderseq asc limit 2";//item_posted_date desc,item_updated_on desc $itemdefaultRs=mysqli_query($con,$itemdefaultSql) or die("Mysql default gallery item selection error : ".mysql_error()); if(mysql_num_rows($itemdefaultRs)>0) { $d_new = 0; while($itemdefaultObj=mysql_fetch_object($itemdefaultRs)) { ?>

Your email address

"; print_r($itemArr); echo "";*/ for($j=0;$jitem_type=="i_new") { echo '
'; include("got_aquestion3.php"); //echo '
'; //$imGsrc="manager/uploads/images/".$itemArr[$j]->item_image; ?> '; } } else if(($vflag==1)&& $iflag==0) { if($itemArr[$j]->item_type=="i_new") { $iflag=1; $imGsrc="manager/uploads/images/".$itemArr[$j]->item_image; include("got_aquestion4.php"); // echo '
'; ?> '; } } else { echo '
'; $imGsrc="manager/uploads/images/".$itemArr[$j]->item_image; ?> '; } //if($itemArr[$j]->item_type=="i_new" && $j==($tot-1)) if($j==($tot-1)) { $flag=0; } if($itemArr[$j]->item_type!="i_new") { $vflag=1; //if ($j==($tot-1)) $flag=1; echo '
 '; if($itemArr[$j]->item_type=="v") { $flv_url ="manager/uploads/media/".$itemArr[$j]->item_path; $swf_url = "manager/player-viral.swf"; ?> item_image?>') no-repeat center;" id="player_"> item_type=="f") { $flash_url ="manager/uploads/media/".$itemArr[$j]->item_path; ?> item_type=="y") { ?>
 
' ; } } /* end: for images */ /* ssn end: The images and video will be seprated here*/ ?>