pb_recperpage; $recPerPage=7; $strpass=""; $searchStr=""; if(isset($_REQUEST["cid"]) && ($_REQUEST["cid"]<>"")) { $cid=$_REQUEST["cid"]; $searchStr=" and pb_category=$cid"; $strpass="&cid=".$cid; } else if(isset($_REQUEST["uid"]) && ($_REQUEST["uid"]<>"")) { $uid=$_REQUEST["uid"]; $searchStr=" and pbuid=$uid"; $strpass="&uid=".$uid; } $query=mysqli_query($conn, "select * from pb_orkutcode_images where pb_approved='y' $searchStr order by ondate DESC"); if(!isset($_REQUEST["pg"])) $pg=1; else $pg=$_REQUEST["pg"]; $rcount=mysqli_num_rows($query); if ($rcount==0 ) { $pages=0; } else { $pages=floor($rcount / $recPerPage); if (($rcount%$recPerPage) > 0 ) { $pages=$pages+1; } } if($pg>$pages) $pg=$pages; $jmpcnt=1; while ( $jmpcnt<=($pg-1)*$recPerPage && $row = mysqli_fetch_object($query) ) { $jmpcnt = $jmpcnt + 1; } ?>
Image Gallery
"")) { ?>
The following images are submitted by memberFullName($_REQUEST["uid"]); ?> getMemberCard($_REQUEST["uid"]); ?>