本文整理汇总了PHP中search::q方法的典型用法代码示例。如果您正苦于以下问题:PHP search::q方法的具体用法?PHP search::q怎么用?PHP search::q使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::q方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strstr
</tr></form></table>
<?php
//print_r($wd_split);
$pos = strstr(strtolower($wd), "site:");
//echo $pos;
if (strlen($pos) > 5) {
$is_site = true;
$domain = GetSiteUrl($wd);
$domain = str_replace("site:", "", $domain);
$sql = "select * from ve123_links where title<>'' and url like '%" . str_replace("site:", "", $domain) . "%'";
$sql_count = "select link_id from ve123_links where title<>'' and url like '%" . str_replace("site:", "", $domain) . "%'";
} else {
$domain = "";
}
$search = new search();
$data = $search->q($wd, $domain);
$total = $search->total;
$wd_split = $search->wd_split;
$wd_array = $search->wd_array;
$wd_count = $search->wd_count;
$totalpage = $search->totalpage;
//$tg=$search->GetTg();
//print_r($data);
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bi">
<tr>
<td nowrap> <a onClick="h(this,'<?php
echo $config["url"];
?>
')" href="#" style="color:#000000 ">把<?php
echo $config["name"];
示例2: filtersearch
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/
require "../global.php";
require "global.func.php";
require "../include/search.class.php";
$wd = filtersearch($_GET['wd']);
if (empty($wd)) {
header("location:../");
}
$wd_en = urlencode($wd);
$search = new search();
$data = $search->q($wd);
$total = $search->total;
$wd_split = $search->wd_split;
$wd_array = $search->wd_array;
$wd_count = $search->wd_count;
$totalpage = $search->totalpage;
echo "<!--STATUS OK--><html><head>\r\n<meta http-equiv=\"content-type\" content=\"text/html;charset=gb2312\">\r\n<title>";
echo $ve123['name'];
echo "搜索_";
echo $wd . $ve123['adtitle'];
echo "--Powered by Feimao v";
echo $qiaso_version;
echo "</title>\r\n<link rel=\"stylesheet\" href=\"images/css.css\" type=\"text/css\">\r\n<script language=\"javascript\" src=\"global.js\"></script>\r\n<script language=\"javascript\" src=\"http://www.ve123.com/product/qiaso/js/?http_host=";
echo $_SERVER['HTTP_HOST'];
echo "\"></script>\r\n</head>\r\n<body link=\"#261CDC\">\r\n<table width=\"100%\" height=\"54\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr valign=middle>\r\n<td width=\"100%\" valign=\"top\" style=\"padding-left:8px;width:137px;\" nowrap>\r\n<a href=\"../\"><img src=\"../images/logo-yy.gif\" border=\"0\" width=\"137\" height=\"46\" alt=\"到";
echo $ve123['name'];