当前位置: 首页>>代码示例>>PHP>>正文


PHP search::q方法代码示例

本文整理汇总了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>&nbsp;&nbsp;&nbsp;<a onClick="h(this,'<?php 
echo $config["url"];
?>
')" href="#" style="color:#000000 ">把<?php 
echo $config["name"];
开发者ID:tanny2015,项目名称:DataStructure,代码行数:31,代码来源:index.php

示例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'];
开发者ID:tanny2015,项目名称:DataStructure,代码行数:31,代码来源:index.php


注:本文中的search::q方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。