ResultsPerPage = $resultsperpage; $Paging->LinksPerPage = $resultsperpage; $Paging->PageVarName = "page"; /* This is required in order for the whole thing to work! */ $Paging->TotalResults = $dbr->countKeywords($keywordid); /* Get our array of valuable paging information! */ $InfoArray = $Paging->InfoArray(); $mysql_limit1 = $InfoArray['MYSQL_LIMIT1']; $mysql_limit2 = $InfoArray['MYSQL_LIMIT2']; $page = $InfoArray['CURRENT_PAGE']; if (!empty($keywordid)) { $selection = "r2.num, title, gmt_posted, publication_date, description, authors, total_views, thumbnail_file, larger_image"; $data = $dbr->selectKeyArticles($keywordid, $selection, $mysql_limit1, $mysql_limit2); $key_info = $dbr->selectOne("RES_keywords", $keywordid); } else { $print_key = "y"; $key_data = $dbr->selectMore("RES_keywords", "num, keyword", "keyword", "ASC", $mysql_limit1, $mysql_limit2, "langcode='en-us'"); } ?>