0) { // Build result paging $perPage = 9; //records per page $maxrecords_sql = "SELECT COUNT(ID) as maxrecords FROM gallery_data WHERE catID = '$catID' AND viewable = 'Y'"; $maxpages_sql = "SELECT CEILING(COUNT(ID) / ".$perPage.") AS maxpages FROM gallery_data WHERE catID = '$catID' AND viewable = 'Y'"; $maxrecords_query = mysql_query($maxrecords_sql); $temp = mysql_fetch_array($maxrecords_query); $maxrecords = $temp[0]; mysql_free_result($maxrecords_query); $maxpages_query = mysql_query($maxpages_sql); $temp = mysql_fetch_array($maxpages_query); $maxpages = $temp[0]; mysql_free_result($maxpages_query); if($_REQUEST["page"] == "") { $page = 1; } else { $page = mysqlquerycleaner($_REQUEST["page"]); } ?> 0) { ?> 1) { ?> 1) { ?>

GALLERY

0) { $count = 1; while($row = mysql_fetch_array($cat)) { ?> >
This gallery represents a sampling of the fine custom weapons and products that we have available to our customers. Please browse our photos and contact us for additional information, 1-888-404-5211 or Email.
No Gallery items to display.

gallery item(s) on page(s).
");} ?> ");} if($i<=$maxpages["maxpages"]-1){print("|");} } ?>
No gallery items to display
");} ?> ");} if($i<=$maxpages["maxpages"]-1){print("|");} } ?>