$val_abb) { $chekkey = strtolower($topic); if (strpos($chekkey,$val_abb) !== false) { $chekdst = '~\b'.$val_abb.'\b~'; if ( preg_match($chekdst,$chekkey) ) { $topic = str_replace($val_abb,strtoupper($val_abb),$chekkey); $topicword_breadcrumb = ucwords($topic); $topic = ucwords($topic); $topics = ucwords($topic); } } } if($parent_category != ''){ $topicword_breadcrumb = ucwords($topicword); } if(strlen($topicword)>3){ // $query = "SELECT g.gameid, g.title, g.description, g.titleurl, g.gameimage, g.gametype, g.puzzle_difficulty, g.language, g.attempts FROM sliding_tag t, sliding_games g WHERE g.gameid=t.gameid AND MATCH(t.tags) AGAINST('{".$topicword."}' IN BOOLEAN MODE) AND t.tags LIKE '%{".$topicword."}%' AND g.ispublished=1"; }else{ $query = "SELECT g.gameid, g.title, g.description, g.titleurl, g.gameimage, g.gametype, g.puzzle_difficulty, g.language, g.attempts FROM sliding_tag t, sliding_games g WHERE g.gameid=t.gameid AND (t.tags LIKE '%{".$topicword."}%' IN BOOLEAN MODE) AND g.ispublished=1"; } $queryRowSet = @mysql_query($query); $popular_display_jigsaw = array(); while($_results = @mysql_fetch_array($queryRowSet)){ $gameid = $_results['gameid']; $language = $_results['language']; $title = ucwords($_results['title']); $description = ucfirst($_results['description']); $titleurl = $_results['titleurl']; $gameimage = $_results['gameimage']; $gametype = $_results['gametype']; $difficultylevel = $_results['puzzle_difficulty']; $attempts = $_results['attempts']; $main_array = array('gameid'=>$gameid, 'title'=>$title, 'description'=>$description, 'titleurl'=>$titleurl, 'gameimage'=>$gameimage, 'gametype'=>$gametype, 'difficultylevel'=>$difficultylevel, 'attempts'=>$attempts); array_push($popular_display_jigsaw, $main_array); $popular_display_jigsaw = msort('attempts', SORT_DESC, SORT_NUMERIC, $popular_display_jigsaw); } //PAGING code $recordsPerPage = 18; //number of records to show per page $pageNum = 1; //default page starting $_page = $pagination; if(isset($_page)) { $pageNum = $_page; settype($pageNum, 'integer'); } $offset = ($pageNum - 1) * $recordsPerPage; $pageurl = '/games/puzzle/sliding/topic/'; if($_page!='') { $_page = intval($_page); if($_page==0) { header('location: /games/puzzle/sliding/topic/'.$topic_get); die(); } } /////////////////////////////////////////////////////// $total_records_count = count($popular_display_jigsaw)-3; $nofollowtag = $total_records_count ; $maxPage_rel = ceil($total_records_count/$recordsPerPage); if($maxPage_rel>1) { $nextpag = $pagination+1; $prevpag = $pagination-1; $pagination_rel = 1; if($pagination=='') { $linkrel = ''; } else if($maxPage_rel>$pagination && $maxPage_rel!=$pagination) { if($prevpag == 1){ $linkrel = " \n"; }else{ $linkrel = " \n"; } //$linkrel .= "
"; $linkrel .= ""; } else { $linkrel = ''; } } $canonical_tag = ' '; if($page_num==1) $_pageTitle=trim($topic)." Sliding Puzzles - ProProfs Sliding Puzzle Game"; else $_pageTitle=trim($topic)." Sliding Puzzles - Page ".$page_num." by ProProfs Sliding Puzzle Game"; $_pageDescr = ucfirst(trim($to_pic))." Sliding Puzzle Game - Play ".strtolower(trim($topic))." Sliding Puzzles online with ProProfs."; $_pageKeywords= ucfirst(trim($topic))." Sliding Puzzle Game, ".strtolower(trim($topic))." jigsaws"; include($_SERVER['DOCUMENT_ROOT'].'/games/SSI/header_v1.php'); ?>

Sliding Puzzle Game

showAdd('160x600'); ?>
$recordsPerPage){ ?>