// 加载mysql函数
require_once('./s/include/mysql.class.php');
// 加载数据库配置信息
require_once('./s/include/config.php');
<? //最近查询信息
$query = $DB->query("select domain,searchCount from PageRank_stat ORDER BY searchCount DESC LIMIT 0, 10");
$LastSearch10 = array();
while ($LastSearch10 = $DB->fetch_array($query)) {
echo "<tr> \n";
echo "<td nowrap>".$LastSearch10['domain']."</td>";
echo "<td nowrap>".$LastSearch10['searchCount']."</td>";
echo "</tr>";
}
unset($LastSearch10);
$DB->free_result($query);
$DB->close();
?>