startCache(); session_start(); include_once($_SERVER['DOCUMENT_ROOT'] . '/admin/inc/connect.php'); $Table = "item"; $strTemp = ""; $strCategoryId = 3; $intCounter = 1; // how many rows to show per page $rowsPerPage = 10; $colsPerPage = 2; // by default we show first page $pageNum = 1; $pageTitle = ""; // if $_GET['page'] defined, use it as page number if(isset($_GET['page'])) { $pageNum = $_GET['page']; } If ($pageNum <> 1) { $pageTitle = " Page $pageNum "; } // counting the offset $offset = ($pageNum - 1) * $rowsPerPage; ?> Nyan Cat Gallery <?=$pageTitle;?>- nyan cat play now! =^+^=
Nyan Cat

Nyan Cat Gallery

All the Nyan Cat gallery range from funny images, Nyan Cat product images are listed here.
Contact us to submit Nyan Cat images to gallery.

Have Fun - and remember to tell your friends about nyan-cat.com!
Share


" class="yellow" title="View "> " class="border" alt="" />

 
 


0) { mysql_free_result($result); // how many rows we have in database $strQuery="SELECT COUNT(*) AS numrows FROM item i INNER JOIN category s ON i.category_id = s.category_id "; $strQuery=$strQuery." WHERE i.category_id=".dbint($strCategoryId) . " AND i.is_active=1"; $result2 = _mysql_query($strQuery); $row2 = mysql_fetch_assoc($result2); $numrows = $row2['numrows']; // how many pages we have when using paging? $maxPage = ceil($numrows/$rowsPerPage); // print the link to access each page $self = $_SERVER['PHP_SELF']; $nav = ''; if ($pageNum - 3 < 1) { $pagemin = 1; } else { $pagemin = $pageNum - 3; }; if ($pageNum + 3 > $maxPage) { $pagemax = $maxPage; } else { $pagemax = $pageNum + 3; }; if ($pagemin > 1) { $nav .= " 1 "; if ($pagemin != 2) { $nav .= "
...
"; } } for($page = $pagemin; $page <= $pagemax; $page++) { if ($page == $pageNum) { $nav .= " $page "; // no need to create a link to current page } else { if ($page == 1) { $nav .= " $page "; } else { $nav .= " $page "; } } } if ($pagemax < $maxPage) { if ($pagemax != $maxPage - 1) { $nav .= "
...
"; } $nav .= " $maxPage "; } if ($pageNum > 1) { $page = $pageNum - 1; if ($page == 1) { $prev = " Prev "; } else { $prev = " Prev "; } $first = " First "; } else { $prev = ' '; // we're on page one, don't print previous link $first = ' '; // nor the first page link } if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = " Next "; $last = " Last "; } else { $next = ' '; // we're on the last page, don't print next link $last = ' '; // nor the last page link } // print the navigation link //echo $first . $prev . $nav . $next . $last; mysql_free_result($result2); //mysql_close(); ?>
Page          

No data.


Has something to share? Submit your Nyan Cat Games, Videos & Images here


endCache(); ?>