Source for file searchstats_lib.php
Documentation is available at searchstats_lib.php
* @copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
* @author Luis Argerich (lrargerich@yahoo.com)
* @subpackage SearchStatsLib
$result = $this->mDb->query($query,array());
$mid = " WHERE (UPPER(`term`) LIKE ?)";
$query = "SELECT * FROM `". BIT_DB_PREFIX. "search_stats` $mid ORDER BY ". $this->mDb->convertSortmode($sort_mode);
$query_cant = "SELECT COUNT(*) FROM `". BIT_DB_PREFIX. "search_stats` $mid";
$result = $this->mDb->query($query,$bindvars,$max_records,$offset);
$cant = $this->mDb->getOne($query_cant,$bindvars);
while ($res = $result->fetchRow()) {
|